'Admin', 'users' => $user, 'me' => $me]); } /** * Add an user in database. * * */ public function addUser() { $user = new User; $user->firstname = Input::get('firstname'); $user->email = Input::get('email'); $user->admin = 0; $user->city = Input::get('city'); $user->lastname = Input::get('lastname'); $user->save(); return redirect('/admin')->with('message', 'Referent ajouté avec succès'); } /** * Delete an user * */ public function deleteUser() { // TODO } }