\Dvivier\Smarticops\Http\ControllersPermissionsController

The controller of Dvivier\Smarticops\Permission Model.

Summary

Methods
Properties
Constants
__construct()
index()
create()
edit()
create_post()
edit_post()
delete()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() 

Called by all child controllers.

Change the locale according to the Session information.

index()

index() 

The permissions index.

create()

create() 

Prepare form to create a permission

create_post()

create_post(\Illuminate\Http\Request  $request) 

Handles a create request

Parameters

\Illuminate\Http\Request $request

edit_post()

edit_post(\Illuminate\Http\Request  $request, \Dvivier\Smarticops\Permission  $permission) 

Handles an edit request

Parameters

\Illuminate\Http\Request $request
\Dvivier\Smarticops\Permission $permission

The permission to edit