src/controllers/RemindersController.php
public function postRemind()
	{
        \App::make('route');

        \Config::set('auth.defaults.passwords', 'panel');

	    $response = \Password::sendResetLink(Input::only('email'), function($message) {
		  $message->subject('Password Reminder');
	    });

        switch ($response) {
                case PasswordBrokerContract::INVALID_USER:
                        return \Redirect::back()->with('message', \Lang::get($response))->with('mesType', 'error');

                case PasswordBrokerContract::RESET_LINK_SENT:
                        return \Redirect::back()->with('message', \Lang::get($response))->with('mesType', 'info');
        }
	}
public function postRemind()
	{
        \App::make('route');

        \Config::set('auth.defaults.passwords', 'panel');

	    $response = \Password::sendResetLink(Input::only('email'), function($message) {
		  $message->subject('Password Reminder');
	    });

        switch ($response) {
                case PasswordBrokerContract::INVALID_USER:
                        return \Redirect::back()->with('message', \Lang::get($response))->with('mesType', 'error');

                case PasswordBrokerContract::RESET_LINK_SENT:
                        return \Redirect::back()->with('message', \Lang::get($response))->with('mesType', 'info');
        }
	}
public function postRemind ( ) { \ App :: make ( 'route' ) ; \ Config :: set ( 'auth.defaults.passwords' , 'panel' ) ; $ response = \ Password :: sendResetLink ( Input :: only ( 'email' ) , function ( $ message ) { $ message -> subject ( 'Password Reminder' ) ; } ) ; switch ( $ response ) { case PasswordBrokerContract :: INVALID_USER : return \ Redirect :: back ( ) -> with ( 'message' , \ Lang :: get ( $ response ) ) -> with ( 'mesType' , 'error' ) ; case PasswordBrokerContract :: RESET_LINK_SENT : return \ Redirect :: back ( ) -> with ( 'message' , \ Lang :: get ( $ response ) ) -> with ( 'mesType' , 'info' ) ; } }
Handle a POST request to remind a user of their password.

@return Response
Handle a POST request to remind a user of their password .