Skip to content

Octane compatability #72

@leon0399

Description

@leon0399

Subject of the issue

Right now library is not Octane compatible, (e.g. places like [this](src/Providers/LaravelServiceProvider.php#48 are not allowed use $this->app, config(...) function call inside providers should be replaced by $this->app->make('config') or similiar). It also caches authenticated user in JWTGuard, which causes user to be not updated between requests

Your environment

Q A
Bug? yes
Framework Laravel
Framework version 8.73.0
Package version 1.2.0
PHP version 8.0.11

Steps to reproduce

Add Octane, add JWT Auth

Expected behaviour

First authenticated user is saved for all subsequent requests

Actual behaviour

Library should work with Octane without extra hacks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions