Laravel theorytheory 0/50 · 0%
Filesystem · easy

20. Storage & File Uploads

Managing files with the Storage facade.

Laravel's filesystem abstraction, accessed via the Storage facade, supports local disks, S3, and other drivers configured in config/filesystems.php. Uploaded files can be stored with $request->file('avatar')->store('avatars'), and Storage::url() generates public URLs for accessible files. Symbolic links (php artisan storage:link) expose the public disk.

Check your understanding

  1. 1. Which command links storage/app/public to public/storage?

  2. 2. Which facade abstracts file storage drivers?