\Dvivier\Smarticops\Http\ControllersUsersController

The controller for Dvivier\Smarticops\User 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
post()
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 users index.

create()

create() 

Prepare form to create a user

edit()

edit(\Dvivier\Smarticops\User  $user) 

Prepare form to edit a user

Parameters

\Dvivier\Smarticops\User $user

the user already existing which is about to be modified

create_post()

create_post(\Illuminate\Http\Request  $request) 

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

Parameters

\Illuminate\Http\Request $request

edit_post()

edit_post(\Illuminate\Http\Request  $request, \Dvivier\Smarticops\User  $user) 

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

Parameters

\Illuminate\Http\Request $request
\Dvivier\Smarticops\User $user

delete()

delete(\Dvivier\Smarticops\User  $user) 

Handles a delete request.

The user will be softly deleted.

Parameters

\Dvivier\Smarticops\User $user

post()

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

Processes the creation/update of a user

Parameters

\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.