Skip to content
This repository was archived by the owner on Mar 12, 2022. It is now read-only.

Does not use route name specified in RouteServiceProvider #255

Open
joveice opened this issue Jan 11, 2020 · 0 comments
Open

Does not use route name specified in RouteServiceProvider #255

joveice opened this issue Jan 11, 2020 · 0 comments

Comments

@joveice
Copy link

joveice commented Jan 11, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant