Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

back() with errors in laravel

return Redirect::back()->withErrors(['msg' => 'The Message']);
inside you view
@if($errors->any())
<h4>{{$errors->first()}}</h4>
@endif
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #errors #laravel
ADD COMMENT
Topic
Name
1+4 =