Answers for "laravel withsuccess"

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
0

withsuccess laravel 8

return redirect('dashboard')->with('success', 'Profile updated successfully!');
Posted by: Guest on December-10-2020

Browse Popular Code Answers by Language