Answers for "laravel is having success"

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

Browse Popular Code Answers by Language