Answers for "url::route in laravel"

PHP
0

current URL without url site laravel

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

named route with parameter laravel

Route::get('/menu/{category}/{product}/{item}', ['as' => 'named.route' , 'uses' => 'MenuController@listItem']);

// to get the actual linke
route('named.route', ['category' => $category->id, 'product' => $product->id, 'item' => $item->id]);
Posted by: Guest on May-29-2020

Browse Popular Code Answers by Language