lravel redirect with error

104

In controller - 
return redirect()->route('login')->withErrors(['error' => 'The credentials do not match our records']);

In blade/view - 
<p>{{session('errors')->first('error');}}</p>

Comments

Submit
0 Comments