PHP Class Stevemo\Cpanel\Controllers\CpanelController

Inheritance: extends BaseController
Exibir arquivo Open project: stevemo/cpanel

Public Methods

Method Description
__construct ( Stevemo\Cpanel\User\Repo\CpanelUserInterface $users, Stevemo\Cpanel\User\Form\UserFormInterface $userForm )
getLogin ( ) : Illuminate\View\View Show the login form
getLogout ( ) : Illuminate\Http\RedirectResponse Logs out the current user
getRegister ( ) : Illuminate\View\View Display the registration form
index ( ) : Illuminate\View\View Show the dashboard
postLogin ( ) : Illuminate\Http\RedirectResponse Authenticate the user
postRegister ( ) : Illuminate\Http\RedirectResponse Register user

Method Details

__construct() public method

public __construct ( Stevemo\Cpanel\User\Repo\CpanelUserInterface $users, Stevemo\Cpanel\User\Form\UserFormInterface $userForm )
$users Stevemo\Cpanel\User\Repo\CpanelUserInterface
$userForm Stevemo\Cpanel\User\Form\UserFormInterface

getLogin() public method

Show the login form
Author: Steve Montambeault
public getLogin ( ) : Illuminate\View\View
return Illuminate\View\View

getLogout() public method

Logs out the current user
Author: Steve Montambeault
public getLogout ( ) : Illuminate\Http\RedirectResponse
return Illuminate\Http\RedirectResponse

getRegister() public method

Display the registration form
Author: Steve Montambeault
public getRegister ( ) : Illuminate\View\View
return Illuminate\View\View

index() public method

Show the dashboard
Author: Steve Montambeault
public index ( ) : Illuminate\View\View
return Illuminate\View\View

postLogin() public method

Authenticate the user
Author: Steve Montambeault
public postLogin ( ) : Illuminate\Http\RedirectResponse
return Illuminate\Http\RedirectResponse

postRegister() public method

Register user
Author: Steve Montambeault
public postRegister ( ) : Illuminate\Http\RedirectResponse
return Illuminate\Http\RedirectResponse