__construct()
__construct()
Called by all child controllers.
Change the locale according to the Session information.
The controller for Dvivier\Smarticops\User model.
edit(\Dvivier\Smarticops\User $user)
Prepare form to edit a user
| \Dvivier\Smarticops\User | $user | the user already existing which is about to be modified |
edit_post(\Illuminate\Http\Request $request, \Dvivier\Smarticops\User $user)
Handles an edit request, then calls the post() method
| \Illuminate\Http\Request | $request | |
| \Dvivier\Smarticops\User | $user |
delete(\Dvivier\Smarticops\User $user)
Handles a delete request.
The user will be softly deleted.
| \Dvivier\Smarticops\User | $user |
post(\Dvivier\Smarticops\User $user, \Illuminate\Http\Request $request, boolean $updating = false)
Processes the creation/update of a user
| \Dvivier\Smarticops\User | $user | The user, already existing or freshly created |
| \Illuminate\Http\Request | $request | |
| boolean | $updating | Whether it's an update (true) or the creation (false) of the user. |