Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

lravel redirect with error

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

In blade/view - 
<p>{{session('errors')->first('error');}}</p>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #lravel #redirect #error
ADD COMMENT
Topic
Name
2+4 =