Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel redirect method

//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: #laravel #redirect #method
ADD COMMENT
Topic
Name
6+3 =