1Route::prefix('admin')->group(function () {
2 Route::get('/users', function () {
3 // Matches The "/admin/users" URL
4 });
5});
1Route::view('Url','PageName');
2//here Url is the call word which pass from url
3Route::get('Url',[Controller::class ,'FunctionName']);
4//from this route you can access function of specific
5//controller thourgh specific url route
6Route::get('Url/{id}',[Controller::class ,'FunctionName']);
7//if you want to pass specific id or any thing thorugh route you
8//can use it{id} or{name} or {anything} means anything you want to access
9
1Route::get('/menu/{category}/{product}/{item}', ['as' => 'named.route' , 'uses' => 'MenuController@listItem']);
2
3// to get the actual linke
4route('named.route', ['category' => $category->id, 'product' => $product->id, 'item' => $item->id]);
1Route::namespace('Admin')->group(function () {
2 // Controllers Within The "App\Http\Controllers\Admin" Namespace
3});