Answers for "redirect post laravel"

C#
3

redirect to route laravel

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

    return redirect('/dashboard')->with('status', 'Profile updated!');
});
Posted by: Guest on December-10-2020
1

laravel redirect action

use App\Http\Controllers\HomeController;

return redirect()->action([HomeController::class, 'index']);
Posted by: Guest on August-24-2021
1

redirect to url with post data laravel

return redirect()->route('home');
Posted by: Guest on August-17-2020
0

laravel redirect action

return redirect()->action(
    [UserController::class, 'profile'], ['id' => 1]
);
Posted by: Guest on November-13-2020

C# Answers by Framework

Browse Popular Code Answers by Language