Linked Questions

Popular Questions

using laravel 5.7, i have the following code line in routes/web.php

Route::resource('admin/users', 'Admin\AdminUsersController');

when i list routes via : php artisan route:list i get the following:

|        | GET|HEAD  | admin/users             | users.index      | App\Http\Controllers\Admin\[email protected]                  | web
|        | POST      | admin/users             | users.store      | App\Http\Controllers\Admin\[email protected]                  | web
|        | GET|HEAD  | admin/users/create      | users.create     | App\Http\Controllers\Admin\[email protected]                 | web
|        | GET|HEAD  | admin/users/{user}      | users.show       | App\Http\Controllers\Admin\[email protected]                   | web
|        | PUT|PATCH | admin/users/{user}      | users.update     | App\Http\Controllers\Admin\[email protected]                 | web
|        | DELETE    | admin/users/{user}      | users.destroy    | App\Http\Controllers\Admin\[email protected]                | web
|        | GET|HEAD  | admin/users/{user}/edit | users.edit       | App\Http\Controllers\Admin\[email protected]                   | web

why routes are not named following the directory structure : admin.users.method

Related Questions