-
-
Notifications
You must be signed in to change notification settings - Fork 469
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
How can I avoid this issue? #2256
Labels
Comments
Try to use separate variable for full class name with namespace:
|
Jeckerson
added
the
Hacktoberfest
See https://hacktoberfest.digitalocean.com/ for participants details
label
Oct 3, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I have the class "App\Product" and when I use the function getModel("Product"), it's error. After check class_exists("App\" . className), the variable className becomes null and then the final className is "App\" and it causes issue.
The text was updated successfully, but these errors were encountered: