-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not Working With Laravel Spark Classic #252
Comments
Hi @gelinger777 👋 I'm not familiar with Spark personally and can't really speak to any specific integration quirks there, but "shouldHaveSelfVisibility" is not a method referenced anywhere in this library. What version of Laravel are you using? Can you list your Composer dependencies so we can see what else you're running that might be causing a conflict? |
Dear @evansims thank you for your fast response. First of all here is the composer.json
I tried to dig a bit into Spark Classic Code and it has a model, which is in the closed composer package src
And in the project itself We have defined (which is model generated by Spark itself ) User model like this
I guess problem comes from
and the fact that in CustomUserRepository.php I have followed the tutorial https://auth0.com/docs/quickstart/webapp/laravel/01-login to implement your plugin. And I suspect problem is the following part
with the type-casting :Authenticatable . When I remove the :Authenticatable And now I am totally confused how to make this work, as I want Auth0 to be used in our simple project example... |
Also I have added
|
Hi @gelinger777 👋 Removing the It appears the core issue you're facing is Spark Classic's user model type appears to extend the Unfortunately, I'm unable to offer guidance on implementing with Spark Classic. As they have their own authentication and user model approach, I'd suggest reaching out to the support team at Spark about how their offering supports other authentication schemes. I'd also encourage you to reach out to the Auth0 Community for integration advice. |
Oh That's a good catch! Thank you @evansims . I will try to overcome then on my own. Thank you |
SDK Version
6.5
PHP Version
PHP 7.4
Composer Version
2.x
What happened?
I am trying to integrate your plugin as a driver for Laravel Spark Classic.
In Config I have set it like
Everything works pretty well with login and coming back . Even User is created (I have used custom user repository example from Laravel Auth0 Tutorial).
But on page where it should be used we get
Call to a member function "shouldHaveSelfVisibility" () on null
How can we reproduce this issue?
Additional context
No response
The text was updated successfully, but these errors were encountered: