Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom admin route not working. #92

Open
Hazekaya opened this issue Mar 19, 2021 · 0 comments
Open

Custom admin route not working. #92

Hazekaya opened this issue Mar 19, 2021 · 0 comments

Comments

@Hazekaya
Copy link

Hazekaya commented Mar 19, 2021

Route::group(['middleware' => ['coaster.admin']], function () {
    Route::prefix('admin')->group(function () {
        // Dashboard
        Route::get('/', [\App\Http\Controllers\DashboardController::class, 'index'])
            ->name('coaster.admin.dashboard');

        // CMS Website
        Route::get('/cms-website', [\App\Http\Controllers\CmsWebsiteController::class, 'index'])
            ->name('coaster.admin.cms-website');
    });

Those are my routes. The first one to the Dashboard works fine, but the cms-website route gives me the error "coaster.admin is not defined"

Any solutions?

@Hazekaya Hazekaya changed the title Route [coaster.admin] not defined. Custom admin route not working. Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant