Skip to content

Routes definition results in error 404 #2

@chrisvidal

Description

@chrisvidal

Hi,

thanks for your plugin, Im plyaing with it to see if I can use in a project.

And I'm facing this 404 error on the defined routes.php as per the documentation

Route::prefix('octobase/api/lms/v1')->group(function () {

    (new Octobase)->crud(
        'Author\MyPlugin\Course',
        listM: ['obPublic'], // List All records
        viewM: ['obPublic'], // List single record
        createM: ['obAdmin'], // add single record
        updateM: ['obAdmin'], // update single record
        deleteM: ['obAdmin']  // delete single record
    );
});

got a page error 404 when I try to browse the page octobase/api/lms/v1/courses

Note that I am using the multisite settings for my project.

When I try to run a php artisan october:optimize I got another error from the cached compiled routes.php by october with a Call to undefined Closure::__set_state

Any idea please ?

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