PHP Class Stevemo\Cpanel\Controllers\GroupsController

Inheritance: extends BaseController
Mostrar archivo Open project: stevemo/cpanel

Protected Properties

Property Type Description
$form Stevemo\Cpanel\Group\Form\GroupFormInterface
$groups Stevemo\Cpanel\Group\Repo\CpanelGroupInterface
$permissions Stevemo\Cpanel\Permission\Repo\PermissionInterface

Public Methods

Method Description
__construct ( Stevemo\Cpanel\Group\Repo\CpanelGroupInterface $groups, Stevemo\Cpanel\Group\Form\GroupFormInterface $form, Stevemo\Cpanel\Permission\Repo\PermissionInterface $permissions )
create ( ) : Illuminate\View\View Display create a new group form
destroy ( $id ) : Illuminate\Http\RedirectResponse Remove the specified resource from storage.
edit ( $id ) : Illuminate\Http\RedirectResponse | Illuminate\View\View Show the form for editing the specified resource.
index ( ) : Illuminate\View\View Display all the groups
store ( ) : Illuminate\Http\RedirectResponse Store a newly created resource in storage.
update ( $id ) : Illuminate\Http\RedirectResponse Update the specified resource in storage.

Method Details

__construct() public method

public __construct ( Stevemo\Cpanel\Group\Repo\CpanelGroupInterface $groups, Stevemo\Cpanel\Group\Form\GroupFormInterface $form, Stevemo\Cpanel\Permission\Repo\PermissionInterface $permissions )
$groups Stevemo\Cpanel\Group\Repo\CpanelGroupInterface
$form Stevemo\Cpanel\Group\Form\GroupFormInterface
$permissions Stevemo\Cpanel\Permission\Repo\PermissionInterface

create() public method

Display create a new group form
Author: Steve Montambeault
public create ( ) : Illuminate\View\View
return Illuminate\View\View

destroy() public method

Remove the specified resource from storage.
Author: Steve Montambeault
public destroy ( $id ) : Illuminate\Http\RedirectResponse
$id
return Illuminate\Http\RedirectResponse

edit() public method

Show the form for editing the specified resource.
Author: Steve Montambeault
public edit ( $id ) : Illuminate\Http\RedirectResponse | Illuminate\View\View
$id
return Illuminate\Http\RedirectResponse | Illuminate\View\View

index() public method

Display all the groups
Author: Steve Montambeault
public index ( ) : Illuminate\View\View
return Illuminate\View\View

store() public method

Store a newly created resource in storage.
Author: Steve Montambeault
public store ( ) : Illuminate\Http\RedirectResponse
return Illuminate\Http\RedirectResponse

update() public method

Update the specified resource in storage.
Author: Steve Montambeault
public update ( $id ) : Illuminate\Http\RedirectResponse
$id
return Illuminate\Http\RedirectResponse

Property Details

$form protected_oe property

protected GroupFormInterface,Stevemo\Cpanel\Group\Form $form
return Stevemo\Cpanel\Group\Form\GroupFormInterface

$groups protected_oe property

protected CpanelGroupInterface,Stevemo\Cpanel\Group\Repo $groups
return Stevemo\Cpanel\Group\Repo\CpanelGroupInterface

$permissions protected_oe property

protected PermissionInterface,Stevemo\Cpanel\Permission\Repo $permissions
return Stevemo\Cpanel\Permission\Repo\PermissionInterface