Skip to content

Custom admin route not working.  #92

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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