Category: Laravel, PHP

In Laravel, you can configure your disk storage in which you can configure all of your disk where each disk represents a particular storage/disk location. By default, the public disk uses the local driver and stores these files in storage/app/public.

The folder where you want to upload. In the store method below, the first parameter we are passing is the folder name and second parameter we are passing the disk storage we want to use. We are using disk type ‘public’ because we want to make it publicly accessible.If you will leave the second parameter blank the defaultdisk storage will be taken.
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