Comments (6)
@mikefrancis We're running into the same issue as @vinnyvimto on our endΒ β my understanding is the framework source link above calls getUserResolver()
with the $guard
as a parameter, but returns a Illuminate\Foundation\Auth\User
, not the Illuminate\Contracts\Auth\Guard
. I updated the PR I pushed to use getAuthIdentifier()
(from Illuminate\Auth\Authenticatable
, which User
implements) instead of id()
, which is working on our end now and should fix the tests as well.
from laravel-unleash.
@vinnyvimto It seems like you know how to fix the issue, would be great if you could raise a PR instead?
from laravel-unleash.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from laravel-unleash.
Hello,
Why has it been closed ? This bug is preventing this project to work properly with the basic features of unleash. :/
from laravel-unleash.
@rfussien If it's so important, can I ask if there issomething preventing you from PRing a fix?
from laravel-unleash.
$user
on this line should be an instance of either Illuminate\Contracts\Auth\Guard
or null
from looking at the framework source.
The strategy checks for null
, and any Guard
has to implement the id()
method, so this looks like a problem with your guard? Are you using something custom which doesn't implement that method?
from laravel-unleash.
Related Issues (13)
- Support for laravel 5.5 HOT 1
- Update for laravel framework ^7 HOT 4
- Target [GuzzleHttp\ClientInterface] is not instantiable HOT 9
- Allow versions of Laravel 8 HOT 2
- Feature flags during test execution HOT 4
- Cannot find JsonException (laravel 7) HOT 4
- Incompatible with Pest pestphp/pest (v1.20) HOT 6
- Laravel 9 support HOT 1
- Transfer ownership
- idea: reload cache when its about to expire in __destruct() HOT 1
- test
- Set instanceId an Appname HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-unleash.