Answers for "laravel well return redirect with input data"

PHP
1

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');
Posted by: Guest on August-25-2021
0

redirect back with input laravel in request

// class ExampleRequest 
public function response(array $errors): RedirectResponse
{
  return Redirect::back()->withErrors($errors)->withInput();
}
Posted by: Guest on October-19-2021

Code answers related to "laravel well return redirect with input data"

Browse Popular Code Answers by Language