PHP Class App\Http\Controllers\Backend\PermissionController

Inheritance: extends BaseController
Afficher le fichier Open project: qloog/laravel5-backend

Protected Properties

Свойство Type Description
$permissions App\Contracts\Repositories\PermissionRepository
$roles App\Contracts\Repositories\RoleRepository

Méthodes publiques

Méthode Description
__construct ( App\Contracts\Repositories\RoleRepository $roles, App\Contracts\Repositories\PermissionRepository $permissions )
create ( ) : Illuminate\Http\Response Show the form for creating a new resource.
destroy ( integer $id ) : Illuminate\Http\Response Remove the specified resource from storage.
edit ( integer $id ) : Illuminate\Http\Response Show the form for editing the specified resource.
index ( ) : Illuminate\Http\Response Display a listing of the resource.
show ( integer $id ) : Illuminate\Http\Response Display the specified resource.
store ( Illuminate\Http\Request $request ) : Illuminate\Http\Response Store a newly created resource in storage.
update ( integer $id, Illuminate\Http\Request $request ) : Illuminate\Http\Response Update the specified resource in storage.

Method Details

__construct() public méthode

public __construct ( App\Contracts\Repositories\RoleRepository $roles, App\Contracts\Repositories\PermissionRepository $permissions )
$roles App\Contracts\Repositories\RoleRepository
$permissions App\Contracts\Repositories\PermissionRepository

create() public méthode

Show the form for creating a new resource.
public create ( ) : Illuminate\Http\Response
Résultat Illuminate\Http\Response

destroy() public méthode

Remove the specified resource from storage.
public destroy ( integer $id ) : Illuminate\Http\Response
$id integer
Résultat Illuminate\Http\Response

edit() public méthode

Show the form for editing the specified resource.
public edit ( integer $id ) : Illuminate\Http\Response
$id integer
Résultat Illuminate\Http\Response

index() public méthode

Display a listing of the resource.
public index ( ) : Illuminate\Http\Response
Résultat Illuminate\Http\Response

show() public méthode

Display the specified resource.
public show ( integer $id ) : Illuminate\Http\Response
$id integer
Résultat Illuminate\Http\Response

store() public méthode

Store a newly created resource in storage.
public store ( Illuminate\Http\Request $request ) : Illuminate\Http\Response
$request Illuminate\Http\Request
Résultat Illuminate\Http\Response

update() public méthode

Update the specified resource in storage.
public update ( integer $id, Illuminate\Http\Request $request ) : Illuminate\Http\Response
$id integer
$request Illuminate\Http\Request
Résultat Illuminate\Http\Response

Property Details

$permissions protected_oe property

protected PermissionRepository,App\Contracts\Repositories $permissions
Résultat App\Contracts\Repositories\PermissionRepository

$roles protected_oe property

protected RoleRepository,App\Contracts\Repositories $roles
Résultat App\Contracts\Repositories\RoleRepository