Answers for "return view with success message laravel 8"

PHP
7

add sucssess message laravel

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 "return view with success message laravel 8"

Browse Popular Code Answers by Language