Answers for "laravel show route"

PHP
7

laravel show routes artisan

php artisan route:list
Posted by: Guest on July-28-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
2

laravel get route

Route::get('/user', 'UserController@index');
Posted by: Guest on March-10-2020
4

laravel get route

Route::get('foo', function () {
    return 'Hello World';
});
Posted by: Guest on March-10-2020
1

laraval routing

Route::redirect('/here', '/there', 301);
Posted by: Guest on January-15-2021

Browse Popular Code Answers by Language