I personally stuck on the point where I created projects and forgot to change the path from storage to public. Actually, I wanted to store the file(images) in the image folder that was created in the root. This is what we see in the filesystems.php file 'disks' => [ 'local' => [ 'driver' => 'local', 'root' => storage_path('app'), ], 'public' => [ 'driver' => 'local', 'root' => storage_path('img'), 'url' => env('APP_URL').'/img', 'visibility' => 'public', ], 's3' => [ 'driver' => 's3', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'bucket' => env('AWS_BUCKET'), 'url' => env('AWS_URL'), ], ], Enter fullscreen mode

'public' => [ 'driver' => 'local', 'root' => storage_path('img'), 'url' => env('APP_URL').'/img', 'visibility' => 'public', ], Enter fullscreen mode In the 'root' => storage_path('img), You can change it like these base_path(); // '/var/www/mysite' app_path(); // '/var/www/mysite/app' storage_path(); // '/var/www/mysite/storage'
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners