Answers for "laravel return back with errors bag"

PHP
7

laravel return back with success

return redirect()->back()->with('message', 'IT WORKS!');

Displaying message if it exists:

@if(session()->has('message'))
    <div class="alert alert-success">
        {{ session()->get('message') }}
    </div>
@endif
Posted by: Guest on March-22-2020

Code answers related to "laravel return back with errors bag"

Browse Popular Code Answers by Language