Property | Type | Description | |
---|---|---|---|
$blogs | Learner\Repositories\BlogRepositoryInterface | Blog repository. |
Method | Description | |
---|---|---|
__construct ( Learner\Repositories\BlogRepositoryInterface $blogs ) | Instance blog repository. | |
destory ( integer $id ) : Illuminate\Http\JsonResponse | Delete a video. | |
edit ( integer $id ) : Illuminate\Http\JsonResponse | Edit the blog. | |
index ( ) : Illuminate\Http\JsonResponse | Get all blogs with relation. | |
store ( ) : Illuminate\Http\JsonResponse | Save created blog. | |
togglePublished ( integer $id ) : Illuminate\Http\JsonResponse | Toggle blog published. | |
toggleTop ( integer $id ) : Illuminate\Http\JsonResponse | Toggle blog toped. | |
update ( integer $id ) : Illuminate\Http\JsonResponse | Update the blog. |
public __construct ( Learner\Repositories\BlogRepositoryInterface $blogs ) | ||
$blogs | Learner\Repositories\BlogRepositoryInterface |
public index ( ) : Illuminate\Http\JsonResponse | ||
return | Illuminate\Http\JsonResponse |
public store ( ) : Illuminate\Http\JsonResponse | ||
return | Illuminate\Http\JsonResponse |
public togglePublished ( integer $id ) : Illuminate\Http\JsonResponse | ||
$id | integer | |
return | Illuminate\Http\JsonResponse |