Answers for "url in routiong laravel"

PHP
0

current URL without url site laravel

is work
{{Request::path()}}
or
request()->path()
Posted by: Guest on October-24-2020
5

route() and with() in laravel

Route::get('user/{id}/profile', function ($id) {
    //
})->name('profile');

$url = route('profile', ['id' => 1, 'photos' => 'yes']);

// /user/1/profile?photos=yes
Posted by: Guest on May-30-2020

Browse Popular Code Answers by Language