Property | Type | Description | |
---|---|---|---|
$series | Learner\Repositories\SeriesRepositoryInterface | Series repository. | |
$videos | Learner\Repositories\VideoRepositoryInterface | Video repository. |
Method | Description | |
---|---|---|
__construct ( Learner\Repositories\VideoRepositoryInterface $videos, Learner\Repositories\SeriesRepositoryInterface $series ) | Instance video repository and series repository. | |
destory ( integer $id ) : Illuminate\Http\JsonResponse | Delete a video | |
index ( ) : Illuminate\Http\JsonResponse | Get all videos. | |
store ( ) : Illuminate\Http\JsonResponse | Store a video. | |
update ( integer $id ) : Illuminate\Http\JsonResponse | Update a video. |
Method | Description | |
---|---|---|
getResourceInfo ( string $type, integer $id ) : array | Get video information from remote api. (vimeo. youtube. youku) |
public __construct ( Learner\Repositories\VideoRepositoryInterface $videos, Learner\Repositories\SeriesRepositoryInterface $series ) | ||
$videos | Learner\Repositories\VideoRepositoryInterface | |
$series | Learner\Repositories\SeriesRepositoryInterface |
public index ( ) : Illuminate\Http\JsonResponse | ||
return | Illuminate\Http\JsonResponse |
public store ( ) : Illuminate\Http\JsonResponse | ||
return | Illuminate\Http\JsonResponse |
protected SeriesRepositoryInterface,Learner\Repositories $series | ||
return | Learner\Repositories\SeriesRepositoryInterface |