Skip to content
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

Error Class 'App\Setting' not found #87

Open
ritterg opened this issue Sep 5, 2022 · 0 comments
Open

Error Class 'App\Setting' not found #87

ritterg opened this issue Sep 5, 2022 · 0 comments

Comments

@ritterg
Copy link

ritterg commented Sep 5, 2022

When I try to use the Settings functionality in a laravel 8 project, I get an error "Error Class 'App\Setting' not found" in vendor/appzcoder/laravel-admin/src/Setting.php:39

The problem is that in the same file on line 5 there is

use App\Setting as SettingModel;

but Laravel since some versions has models by App\Models, so this should be

use App\Models\Setting as SettingModel;

At least it works for me like this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant