__construct()
__construct()
Called by all child controllers.
Change the locale according to the Session information.
The controller for the Dvivier\Smarticops\Roles model.
edit(\Dvivier\Smarticops\Role $role)
Prepare view to edit an existing role
| \Dvivier\Smarticops\Role | $role |
edit_post(\Illuminate\Http\Request $request, \Dvivier\Smarticops\Role $role)
Handles an edit request, then calls general post() method
| \Illuminate\Http\Request | $request | |
| \Dvivier\Smarticops\Role | $role |
post(\Illuminate\Http\Request $request, \Dvivier\Smarticops\Role $role, boolean $updating = false)
Called when creating and updating a role
| \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. |
delete(\Dvivier\Smarticops\Role $role)
Handles a delete request
| \Dvivier\Smarticops\Role | $role |