PHP 클래스 Learner\Http\Controllers\Admin\BlogController

상속: extends BaseController
파일 보기 프로젝트 열기: RryLee/learner.video

보호된 프로퍼티들

프로퍼티 타입 설명
$blogs Learner\Repositories\BlogRepositoryInterface Blog repository.

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

Instance blog repository.
public __construct ( Learner\Repositories\BlogRepositoryInterface $blogs )
$blogs Learner\Repositories\BlogRepositoryInterface

destory() 공개 메소드

admin/blogs/{id} delete
public destory ( integer $id ) : Illuminate\Http\JsonResponse
$id integer
리턴 Illuminate\Http\JsonResponse

edit() 공개 메소드

admin/blogs/{id} get
public edit ( integer $id ) : Illuminate\Http\JsonResponse
$id integer
리턴 Illuminate\Http\JsonResponse

index() 공개 메소드

admin/blogs get
public index ( ) : Illuminate\Http\JsonResponse
리턴 Illuminate\Http\JsonResponse

store() 공개 메소드

admin/blogs post
public store ( ) : Illuminate\Http\JsonResponse
리턴 Illuminate\Http\JsonResponse

togglePublished() 공개 메소드

admin/blogs/togglePublished/{id} put
public togglePublished ( integer $id ) : Illuminate\Http\JsonResponse
$id integer
리턴 Illuminate\Http\JsonResponse

toggleTop() 공개 메소드

admin/blogs/toggleTop/{id} put
public toggleTop ( integer $id ) : Illuminate\Http\JsonResponse
$id integer
리턴 Illuminate\Http\JsonResponse

update() 공개 메소드

admin/blogs/{id} put
public update ( integer $id ) : Illuminate\Http\JsonResponse
$id integer
리턴 Illuminate\Http\JsonResponse

프로퍼티 상세

$blogs 보호되어 있는 프로퍼티

Blog repository.
protected BlogRepositoryInterface,Learner\Repositories $blogs
리턴 Learner\Repositories\BlogRepositoryInterface