PHP Class App\Http\Controllers\Backend\NewsController

Inheritance: extends BaseController
Mostra file Open project: qloog/laravel5-backend

Protected Properties

Property Type Description
$category App\Contracts\Repositories\NewsCategoryRepository
$news App\Contracts\Repositories\NewsRepository

Public Methods

Method Description
__construct ( App\Contracts\Repositories\NewsRepository $news, App\Contracts\Repositories\NewsCategoryRepository $category )
create ( ) : Response Show the form for creating a new resource.
destroy ( integer $id ) : Response Remove the specified resource from storage.
edit ( integer $id ) : Response Show the form for editing the specified resource.
index ( ) : Response Display a listing of the resource.
show ( integer $id ) : Response Display the specified resource.
store ( NewsCreateRequest $request ) : Response Store a newly created resource in storage.
update ( App\Http\Requests\Backend\NewsUpdateRequest $request, integer $id ) : Response Update the specified resource in storage.

Method Details

__construct() public method

public __construct ( App\Contracts\Repositories\NewsRepository $news, App\Contracts\Repositories\NewsCategoryRepository $category )
$news App\Contracts\Repositories\NewsRepository
$category App\Contracts\Repositories\NewsCategoryRepository

create() public method

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

destroy() public method

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

edit() public method

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

index() public method

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

show() public method

Display the specified resource.
public show ( integer $id ) : Response
$id integer
return Response

store() public method

Store a newly created resource in storage.
public store ( NewsCreateRequest $request ) : Response
$request App\Http\Requests\Backend\NewsCreateRequest
return Response

update() public method

Update the specified resource in storage.
public update ( App\Http\Requests\Backend\NewsUpdateRequest $request, integer $id ) : Response
$request App\Http\Requests\Backend\NewsUpdateRequest
$id integer
return Response

Property Details

$category protected_oe property

protected NewsCategoryRepository,App\Contracts\Repositories $category
return App\Contracts\Repositories\NewsCategoryRepository

$news protected_oe property

protected NewsRepository,App\Contracts\Repositories $news
return App\Contracts\Repositories\NewsRepository