\Dvivier\Smarticops\Http\ControllersRolesController

The controller for the Dvivier\Smarticops\Roles model.

Summary

Methods
Properties
Constants
__construct()
index()
create()
edit()
create_post()
edit_post()
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 roles index.

create()

create() 

Prepare the view to create a role

edit()

edit(\Dvivier\Smarticops\Role  $role) 

Prepare view to edit an existing role

Parameters

\Dvivier\Smarticops\Role $role

create_post()

create_post(\Illuminate\Http\Request  $request) 

Handles a create request, then calls general post() method

Parameters

\Illuminate\Http\Request $request

edit_post()

edit_post(\Illuminate\Http\Request  $request, \Dvivier\Smarticops\Role  $role) 

Handles an edit request, then calls general post() method

Parameters

\Illuminate\Http\Request $request
\Dvivier\Smarticops\Role $role

post()

post(\Illuminate\Http\Request  $request, \Dvivier\Smarticops\Role  $role, boolean  $updating = false) 

Called when creating and updating a role

Parameters

\Illuminate\Http\Request $request
\Dvivier\Smarticops\Role $role

The role, already existing or freshly created

boolean $updating

Whether it's an update (true) or the creation (false) of the role.