Answers for "laravel redirect with message example"

PHP
1

return redirect with message laravel

Route::post('user/profile', function () {
    // Update the user's profile...

    return redirect('dashboard')->with('status', 'Profile updated!');
});
Posted by: Guest on October-26-2020
3

laravel redirect with message to section

//redirct to previous page with message at a specific setion :)
return redirect(url()->previous() .'#comments')->with('success', 'Data Your Comment has been created successfully');
Posted by: Guest on May-02-2021

Code answers related to "laravel redirect with message example"

Browse Popular Code Answers by Language