PHP Class Learner\Http\Controllers\Admin\SeriesController

Inheritance: extends BaseController
Show file Open project: RryLee/learner.video

Protected Properties

Property Type Description
$categories Learner\Repositories\CategoryRepositoryInterface Category repository.
$series Learner\Repositories\SeriesRepositoryInterface Series repository.

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

destory() public method

admin/series/{id} delete
public destory ( Illuminate\Http\Request $request, $id ) : Illuminate\Http\JsonResponse
$request Illuminate\Http\Request
return Illuminate\Http\JsonResponse

index() public method

admin/series get
public index ( ) : Illuminate\Database\Eloquent\Collection | Series[]
return Illuminate\Database\Eloquent\Collection | Learner\Models\Series[]

store() public method

admin/series post
public store ( ) : Illuminate\Http\JsonResponse
return Illuminate\Http\JsonResponse

update() public method

admin/series/{id} put
public update ( $id ) : Illuminate\Http\JsonResponse
return Illuminate\Http\JsonResponse

Property Details

$categories protected property

Category repository.
protected CategoryRepositoryInterface,Learner\Repositories $categories
return Learner\Repositories\CategoryRepositoryInterface

$series protected property

Series repository.
protected SeriesRepositoryInterface,Learner\Repositories $series
return Learner\Repositories\SeriesRepositoryInterface