Skip to content

Incompatibility with Octane #15

Description

@Energetic6877

When installing this library into an octane project, every request after the first request is missing the config: Target class [config] does not exist. This happens only if the permissions table provided by your library is not migrated. I looked through your library, and you catch the generated PDOException and silently fail (https://github.com/DirectoryTree/Authorization/blob/master/src/PermissionRegistrar.php#L67). I don't see how this is related and thinks this is a bug with octane, but the octane team insists this is a bug with your library laravel/octane#1001

Steps To Reproduce

  1. Install laravel, octane, and directorytree/authorization
  2. Add Authorization::ignoreMigrations(); to the AppServiceProvider register() method (or never migrate)
  3. Create a request that interacts with the config, e.g. app()->setLocale('en')
  4. Start the octane server
  5. Make at least two requests to the configured endpoint

Demo Repo: https://github.com/Energetic6877/bug-report (endpoint /api/test)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions