Looking to hire Laravel developers? Try LaraJobs

laravel-eloquent-files-with-aws-s3 maintained by roopchandkashyap

Description
File Handling with Eloquent Models and AWS Bucket S3 in Laravel
Last update
2019/04/30 06:27 (dev-master)
License
Links
Downloads
24

Comments
comments powered by Disqus

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.