Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel response redirect

#Method 1 with route name
return redirect()->route('login');

#Method 2 back with input
return back()->withInput();

#Method 2 using a url
return redirect('/home/dashboard');
 
PREVIOUS NEXT
Tagged: #laravel #response #redirect
ADD COMMENT
Topic
Name
7+5 =