PHP Класс Learner\Http\Controllers\Admin\SeriesController

Наследование: extends BaseController
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$categories Learner\Repositories\CategoryRepositoryInterface Category repository.
$series Learner\Repositories\SeriesRepositoryInterface Series repository.

Открытые методы

Метод Описание
__construct ( Learner\Repositories\SeriesRepositoryInterface $series, Learner\Repositories\CategoryRepositoryInterface $categories ) Create a new SeriesController instance.
destory ( Illuminate\Http\Request $request, $id ) : Illuminate\Http\JsonResponse Delete series.
index ( ) : Illuminate\Database\Eloquent\Collection | Series[] Return all series and relation.
store ( ) : Illuminate\Http\JsonResponse Create a new series.
update ( $id ) : Illuminate\Http\JsonResponse Update series.

Описание методов

__construct() публичный Метод

Create a new SeriesController instance.
public __construct ( Learner\Repositories\SeriesRepositoryInterface $series, Learner\Repositories\CategoryRepositoryInterface $categories )
$series Learner\Repositories\SeriesRepositoryInterface
$categories Learner\Repositories\CategoryRepositoryInterface

destory() публичный Метод

admin/series/{id} delete
public destory ( Illuminate\Http\Request $request, $id ) : Illuminate\Http\JsonResponse
$request Illuminate\Http\Request
Результат Illuminate\Http\JsonResponse

index() публичный Метод

admin/series get
public index ( ) : Illuminate\Database\Eloquent\Collection | Series[]
Результат Illuminate\Database\Eloquent\Collection | Learner\Models\Series[]

store() публичный Метод

admin/series post
public store ( ) : Illuminate\Http\JsonResponse
Результат Illuminate\Http\JsonResponse

update() публичный Метод

admin/series/{id} put
public update ( $id ) : Illuminate\Http\JsonResponse
Результат Illuminate\Http\JsonResponse

Описание свойств

$categories защищенное свойство

Category repository.
protected CategoryRepositoryInterface,Learner\Repositories $categories
Результат Learner\Repositories\CategoryRepositoryInterface

$series защищенное свойство

Series repository.
protected SeriesRepositoryInterface,Learner\Repositories $series
Результат Learner\Repositories\SeriesRepositoryInterface