PHP Class BookStack\Http\Controllers\UserController

Inheritance: extends Controller
Show file Open project: ssddanbrown/bookstack

Protected Properties

Property Type Description
$user
$userRepo

Public Methods

Method Description
__construct ( User $user, UserRepo $userRepo ) UserController constructor.
create ( ) : Illuminate\Http\Response Show the form for creating a new user.
delete ( integer $id ) : Illuminate\View\View Show the user delete page.
destroy ( integer $id ) : Illuminate\Http\Response Remove the specified user from storage.
edit ( integer $id, SocialAuthService $socialAuthService ) : Illuminate\Http\Response Show the form for editing the specified user.
index ( Illuminate\Http\Request $request ) : Illuminate\Http\Response Display a listing of the users.
showProfilePage ( $id ) : Illuminate\Contracts\View\Factory | Illuminate\View\View Show the user profile page
store ( Illuminate\Http\Request $request ) : Illuminate\Http\Response Store a newly created user in storage.
update ( Illuminate\Http\Request $request, integer $id ) : Illuminate\Http\Response Update the specified user in storage.

Method Details

__construct() public method

UserController constructor.
public __construct ( User $user, UserRepo $userRepo )
$user BookStack\User
$userRepo BookStack\Repos\UserRepo

create() public method

Show the form for creating a new user.
public create ( ) : Illuminate\Http\Response
return Illuminate\Http\Response

delete() public method

Show the user delete page.
public delete ( integer $id ) : Illuminate\View\View
$id integer
return Illuminate\View\View

destroy() public method

Remove the specified user 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 user.
public edit ( integer $id, SocialAuthService $socialAuthService ) : Illuminate\Http\Response
$id integer
$socialAuthService BookStack\Services\SocialAuthService
return Illuminate\Http\Response

index() public method

Display a listing of the users.
public index ( Illuminate\Http\Request $request ) : Illuminate\Http\Response
$request Illuminate\Http\Request
return Illuminate\Http\Response

showProfilePage() public method

Show the user profile page
public showProfilePage ( $id ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
$id
return Illuminate\Contracts\View\Factory | Illuminate\View\View

store() public method

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

update() public method

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

Property Details

$user protected property

protected $user

$userRepo protected property

protected $userRepo