I want to make a separate writable directory for images that are going to uploaded in a Laravel 9 project, so I tried adding this into filesystems.php:
'upload' => [
'driver' => 'local',
'root' => storage_path('app/upload'),
'url' => env('APP_URL') . '/storage/app',
'visibility' => 'public',
'throw' => false,
],
And here is the link:
public_path('storage/upload') => storage_path('app/upload'),
Then ran php artisan storage:link and now the links are already exists.
But I wonder, did I define this new directory correctly?
(Because I’m in the middle of debugging something and now I need to make sure that this directory is defined properly inside filesystems.php).
So if you have any idea about this, please let me know…
Thanks.