Back With Errors In Laravel

[Solved] Back With Errors In Laravel | Php - Code Explorer | yomemimo.com
Question : back() with errors in laravel

Answered by : real-reindeer-jvb2udj1f5qz

return Redirect::back()->withErrors(['msg' => 'The Message']);
inside you view
@if($errors->any())
<h4>{{$errors->first()}}</h4>
@endif

Source : https://stackoverflow.com/questions/19838978/laravel-redirect-back-with-message | Last Update : Sun, 26 Sep 21

Answers related to back with errors in laravel

Code Explorer Popular Question For Php