Haehnchen / idea-php-laravel-plugin

Laravel Framework Plugin for PhpStorm / IntelliJ IDEA
MIT License
572 stars 108 forks source link

Does not use route name specified in RouteServiceProvider #255

Open joveice opened 4 years ago

joveice commented 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.