2017 © Pedro Peláez
 

library laravel-upload

image

leadthread/laravel-upload

  • Thursday, April 20, 2017
  • by tylercd100
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

laravel-upload

Latest Version Software License Build Status Scrutinizer Code Quality Code Coverage Dependency Status Total Downloads, (*1)

Installation

Install via composer - In the terminal:, (*2)

composer require leadthread/laravel-upload

Now add the following to the providers array in your config/app.php, (*3)

LeadThread\Upload\Providers\Upload::class

and this to the aliases array in config/app.php, (*4)

"Upload" => "LeadThread\Upload\Facades\Upload",

Then you will need to run these commands in the terminal in order to copy the config and migration files, (*5)

php artisan vendor:publish --provider="LeadThread\Upload\Providers\Upload"

Before you run the migration you may want to take a look at config/upload.php and change the table property to a table name that you would like to use. After that run the migration, (*6)

php artisan migrate

Usage

To save the file to the disk and database:, (*7)

function upload(Request $request)
{
    $file = $request->file('file');

    //Returns an Eloquent Model for the file
    $model = Upload::create($file);
}

Contributing

Contributions are always welcome!, (*8)

The Versions

20/04 2017
20/04 2017
27/08 2016

dev-sha256-files

dev-sha256-files https://github.com/zenapply/laravel-upload

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tyler Arbon

laravel upload tylercd100 zenapply

29/07 2016

0.0.1

0.0.1.0 https://github.com/zenapply/laravel-upload

  Sources   Download

MIT

The Development Requires

by Tyler Arbon

laravel upload tylercd100 zenapply