-
Notifications
You must be signed in to change notification settings - Fork 64
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
Cannot use ::class with dynamic class name #119
Comments
NovaBelongsToDepend::make('Shows', 'shows', \App\Nova\Shows::class) NovaBelongsToDepend::make('Show Season', 'show_season', \App\Nova\ShowSeason::class) |
I also had this problem, I found the error was in /vendor/orlyapps/nova-belongsto-depend/src/Http/Controllers/FieldController.php line 89, and my php version is 7.4.30, not support for php dynamic class name, so I change 「$resource::class」to 「\get_class($resource)」, everything looks good. |
Me too. Did anybody updated the plugin or find any other fix? |
@royx0612 thanks a lot, it's working now. |
|
did anybody faced this issue?
The text was updated successfully, but these errors were encountered: