PHP Class App\Http\Controllers\Backend\UserController

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

Protected Properties

Property Type Description
$permissions App\Contracts\Repositories\PermissionRepository
$roles App\Contracts\Repositories\RoleRepository
$users App\Contracts\Repositories\UserRepository

Public Methods

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

Method Details

__construct() public method

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

changePassword() public method

public changePassword ( $id, Illuminate\Http\Request $request ) : mixed
$id
$request Illuminate\Http\Request
return mixed

create() public method

Show the form for creating a new resource.
public create ( ) : Illuminate\View\View
return Illuminate\View\View

destroy() public method

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

edit() public method

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

index() public method

Display a listing of the resource.
public index ( ) : Illuminate\View\View
return Illuminate\View\View

show() public method

Display the specified resource.
public show ( integer $id ) : Illuminate\View\View
$id integer
return Illuminate\View\View

store() public method

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

update() public method

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

updatePassword() public method

public updatePassword ( $id, Illuminate\Http\Request $request ) : mixed
$id
$request Illuminate\Http\Request
return mixed

Property Details

$permissions protected property

protected PermissionRepository,App\Contracts\Repositories $permissions
return App\Contracts\Repositories\PermissionRepository

$roles protected property

protected RoleRepository,App\Contracts\Repositories $roles
return App\Contracts\Repositories\RoleRepository

$users protected property

protected UserRepository,App\Contracts\Repositories $users
return App\Contracts\Repositories\UserRepository