-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
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
- Install laravel, octane, and directorytree/authorization
- Add Authorization::ignoreMigrations(); to the AppServiceProvider register() method (or never migrate)
- Create a request that interacts with the config, e.g. app()->setLocale('en')
- Start the octane server
- Make at least two requests to the configured endpoint
Demo Repo: https://github.com/Energetic6877/bug-report (endpoint /api/test)
Metadata
Metadata
Assignees
Labels
No labels