I was wrong, you need to add some gloss in these places
config/filesystems.php
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
'lock' => false, // ← add this line
],
'private' => [
'driver' => 'local',
'root' => storage_path('app/private'),
'lock' => false, // ← add this line
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL') . '/storage',
'visibility' => 'public',
'lock' => false, // ← add this line
],
After that, clear the cache
php artisan optimize:clear
Or manually delete all files inside these directories
storage/framework/cache/data/*
/storage/framework/views/*
/bootstrap/cache/*