Property | Type | Description | |
---|---|---|---|
$categories | Learner\Repositories\CategoryRepositoryInterface | Category repository. | |
$series | Learner\Repositories\SeriesRepositoryInterface | Series repository. |
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 | |
Return all series and relation. | |
store ( ) : Illuminate\Http\JsonResponse | Create a new series. | |
update ( $id ) : Illuminate\Http\JsonResponse | Update series. |
public __construct ( Learner\Repositories\SeriesRepositoryInterface $series, Learner\Repositories\CategoryRepositoryInterface $categories ) | ||
$series | Learner\Repositories\SeriesRepositoryInterface | |
$categories | Learner\Repositories\CategoryRepositoryInterface |
public destory ( Illuminate\Http\Request $request, $id ) : Illuminate\Http\JsonResponse | ||
$request | Illuminate\Http\Request | |
return | Illuminate\Http\JsonResponse |
public index ( ) : Illuminate\Database\Eloquent\Collection | |
||
return | Illuminate\Database\Eloquent\Collection | |
public store ( ) : Illuminate\Http\JsonResponse | ||
return | Illuminate\Http\JsonResponse |
public update ( $id ) : Illuminate\Http\JsonResponse | ||
return | Illuminate\Http\JsonResponse |
protected CategoryRepositoryInterface,Learner\Repositories $categories | ||
return | Learner\Repositories\CategoryRepositoryInterface |