Download the PHP package dmyers/laravel-storage without Composer
On this page you can find all versions of the php package dmyers/laravel-storage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dmyers/laravel-storage
More information about dmyers/laravel-storage
Files in dmyers/laravel-storage
Package laravel-storage
Short Description A simple storage filesystem package for Laravel 4.
License MIT
Informations about the package laravel-storage
Storage Package for Laravel 4
Storage is a filesystem abstraction layer for Laravel 4 applications. If you are using Laravel 5 it comes with a similar package included which can be found in the docs.
Installation via Composer
Add this to you composer.json file, in the require object:
After that, run composer install to install Storage.
Add the service provider to app/config/app.php
, within the providers
array.
Add a class alias to app/config/app.php
, within the aliases
array.
Finally, ensure the files directory defined in the config file is created and writable by the web server (defaults to public/files).
Configuration
Publish the default config file to your application so you can make modifications.
Usage
Check if a file exists in storage:
Get a file's contents from storage:
Put a file into storage:
Upload a file into storage:
Upload a remote file into storage:
Download a file from storage:
Download a remote file locally:
Delete a file from storage:
Move a file in storage:
Copy a file in storage:
Get a file's type from storage:
Get a file's mime type from storage:
Get a file's size from storage:
Get a file's last modification date from storage:
Check if a path is a directory in storage:
List all files in storage:
Get the full URL to a file in storage:
Render a file from storage to the browser: