Laravel Storage

Multiple S3 Buckets

Add one more “disk” config in filesystems.php:

Usage:

Get correct MIME type:

Common methods

Reference:

  1. https://laracasts.com/discuss/channels/requests/putfile-method-stores-mp3-files-as-bin-in-laravel?page=0
  2. https://laracasts.com/discuss/channels/laravel/laravel-54-uploadedfilegetmimetype-returns-incorrect-mimetype