Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

return back in laravel

//return previous Page
return redirect()->back();

//return previoius page with id
return redirect()->to(url()->previous()."#idName");

//return specifie page
return redirect()->route('routeName');

return redirect()->route('routeName')->with('status','action');

return redirect()->back()->withErrors(['old_password'=>"password don't match"]);

 
PREVIOUS NEXT
Tagged: #return #laravel
ADD COMMENT
Topic
Name
9+5 =