Answers for "laravel get input route"

PHP
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
0

laravel get all request parameters

$request->input('name');
$request->input('user.name'); // fetch from user object
Posted by: Guest on November-13-2020

Browse Popular Code Answers by Language