“Przekieruj trasę za pomocą parametrów Laravel” Kod odpowiedzi

Przekierowanie trasy laravel

Route::redirect('/here', '/there');
or
return redirect(route('register'));
Mohamad

Laravel Return przekierowani do nazwy trasy

return redirect()->route('login');
azonedev

Przekieruj do laravel

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

    return redirect('/dashboard')->with('status', 'Profile updated!');
});
Indian Gooner

Redirect :: trasa („profil”) i z () w Laravel

// For a route with the following URI: profile/{id}

return redirect()->route('profile', [$user]);
Lucky Loris

Przekieruj trasę za pomocą parametrów Laravel

//Send the parameter to route
Route::get('url/{identifier}', 'Controller@method')->name('routeNameFromWeb'); 

return redirect(route('routeNameFromWeb.php', ['identifier' => 'value']));
Sergiu The Man

Przekierowanie trasy laravel


return redirect()->route('route.name', [$param]);

Fine Fish

Odpowiedzi podobne do “Przekieruj trasę za pomocą parametrów Laravel”

Pytania podobne do “Przekieruj trasę za pomocą parametrów Laravel”

Więcej pokrewnych odpowiedzi na “Przekieruj trasę za pomocą parametrów Laravel” w PHP

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu