PHP Class Yab\Quarx\Controllers\BlogController

Inheritance: extends QuarxController
ファイルを表示 Open project: YABhq/Quarx

Public Methods

Method Description
__construct ( BlogRepository $blogRepo )
create ( ) : Response Show the form for creating a new Blog.
destroy ( integer $id ) : Response Remove the specified Blog from storage.
edit ( integer $id ) : Response Show the form for editing the specified Blog.
index ( ) : Response Display a listing of the Blog.
search ( Illuminate\Http\Request $request ) : Response Search.
store ( Illuminate\Http\Request $request ) : Response Store a newly created Blog in storage.
update ( integer $id, BlogRequest $request ) : Response Update the specified Blog in storage.

Method Details

__construct() public method

public __construct ( BlogRepository $blogRepo )
$blogRepo Yab\Quarx\Repositories\BlogRepository

create() public method

Show the form for creating a new Blog.
public create ( ) : Response
return Response

destroy() public method

Remove the specified Blog from storage.
public destroy ( integer $id ) : Response
$id integer
return Response

edit() public method

Show the form for editing the specified Blog.
public edit ( integer $id ) : Response
$id integer
return Response

index() public method

Display a listing of the Blog.
public index ( ) : Response
return Response

store() public method

Store a newly created Blog in storage.
public store ( Illuminate\Http\Request $request ) : Response
$request Illuminate\Http\Request
return Response

update() public method

Update the specified Blog in storage.
public update ( integer $id, BlogRequest $request ) : Response
$id integer
$request Yab\Quarx\Requests\BlogRequest
return Response