April 2015
Beginner
144 pages
3h 13m
English
Laravel 5 includes the excellent Flysystem project for interacting with files both in the application filesystem, as well as popular cloud-based storage solutions such as Amazon Simple Storage Service (Amazon S3) and Rackspace. Filesystems are configured as disks in the config/filesystems.php file. You can then use a consistent API to manage files, whether they are located locally or in an external cloud store.
Calling methods directly on the Storage façade will call those methods on the default disk as follows:
Storage::exists('foo.txt');You can also explicitly specify the disk to perform actions on, in case you have more than one disk configured, as follows:
Storage::disk('local')->exists('foo.txt');You can read and write data ...
Read now
Unlock full access