Answers for "show message in laravel"

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 "show message in laravel"

Browse Popular Code Answers by Language