Open joveice opened 4 years ago
Example: RouteServiceProvider:
public function map() { ... $this->mapAdminRoutes(); } ... protected function mapAdminRoutes() { Route::prefix('a') ->name('admin.') ->middleware(['web', 'auth', 'permission:admin-dashboard']) ->namespace($this->namespace) ->group(base_path('routes/admin.php')); }
admin.php:
Route::get('users', 'Admin\UserController@index')->name('users.index');
Autocompletes to users.index. Should have been admin.users.index.
users.index
admin.users.index
Example: RouteServiceProvider:
admin.php:
Autocompletes to
users.index
. Should have beenadmin.users.index
.