home
/
zktecojo
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Auth
/
Console
/
stubs
➕ New
📤 Upload
✎ Editing:
controller.stub
← Back
<?php class RemindersController extends Controller { /** * Display the password reminder view. * * @return Response */ public function getRemind() { return View::make('password.remind'); } /** * Handle a POST request to remind a user of their password. * * @return Response */ public function postRemind() { switch ($response = Password::remind(Input::only('email'))) { case Password::INVALID_USER: return Redirect::back()->with('error', Lang::get($response)); case Password::REMINDER_SENT: return Redirect::back()->with('status', Lang::get($response)); } } /** * Display the password reset view for the given token. * * @param string $token * @return Response */ public function getReset($token = null) { if (is_null($token)) App::abort(404); return View::make('password.reset')->with('token', $token); } /** * Handle a POST request to reset a user's password. * * @return Response */ public function postReset() { $credentials = Input::only( 'email', 'password', 'password_confirmation', 'token' ); $response = Password::reset($credentials, function($user, $password) { $user->password = Hash::make($password); $user->save(); }); switch ($response) { case Password::INVALID_PASSWORD: case Password::INVALID_TOKEN: case Password::INVALID_USER: return Redirect::back()->with('error', Lang::get($response)); case Password::PASSWORD_RESET: return Redirect::to('/'); } } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel