1return Redirect::back()->withErrors(['msg', 'The Message']);
2
3and inside your view call this
4
5@if($errors->any())
6<h4>{{$errors->first()}}</h4>
7@endif
1// Laravel 5
2return redirect()->back()->withInput();
3// Laravel 6,7, 8
4return back()->withInput();