Answers for "laravel blade success messages"

PHP
1

laravel success message

//If it didn't help (still, keep routes.php without web middleware), you can try little bit different approach:

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 August-01-2021

Code answers related to "laravel blade success messages"

Browse Popular Code Answers by Language