laravel-admin icon indicating copy to clipboard operation
laravel-admin copied to clipboard

Error Class 'App\Setting' not found

Open ritterg opened this issue 2 years ago • 0 comments

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

ritterg avatar Sep 05 '22 10:09 ritterg