laravel-admin
laravel-admin copied to clipboard
Error Class 'App\Setting' not found
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