app/Http/Controllers/BaseController.php
//in cases where we might want to redirect the user to the previous page
in cases where we might want to redirect the user to the previous page
in cases where we might want to redirect the user to the previous page
protected function responseRedirectBack($message, $type = 'info', $error = false, $withOldInputWhenError = false)
{
    $this->setFlashMessage($message, $type);
    $this->showFlashMessages();
    return redirect()->back();
}
protected function responseRedirectBack ( $ message , $ type = 'info' , $ error = false , $ withOldInputWhenError = false ) { $ this -> setFlashMessage ( $ message , $ type ) ; $ this -> showFlashMessages ( ) ; return redirect ( ) -> back ( ) ; }
in cases where we might want to redirect the user to the previous page
in cases where we might want to redirect the user to the previous page
//setting flashmessages then returning back