Skip to content

Custom admin route not working.  #92

@ghost

Description

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions