laravel-eloquent-files-with-aws-s3 maintained by roopchandkashyap
Description
File Handling with Eloquent Models and AWS Bucket S3 in Laravel
Author
Last update
2019/04/30 06:27
(dev-master)
License
Downloads
24
Eloquent Files with AWS storage S3 Bucket Config
Installation using Composer:
composer require roopchandkashyap/laravel-eloquent-files-with-aws-s3
Usage:
In your eloquent model use \roopchandkashyap\EloquentFiles\HasFile trait and create a method for accessing file like below:
Here "image_path" is the attribute/column name on which you want to assign the path of the uploaded file, default is "file_path".
The second argument accepted by the file_info() method is the array of the following options.