qusai/easy-upload-files

to make uploading files very easy

0.10 2021-11-13 19:08 UTC

This package is auto-updated.

Last update: 2024-11-14 02:13:36 UTC


README

Image of plan

laravel_easy_file_uploader

simple package for uploading files in laravel frame-work.

HOW TO USE

  • INSTALL THE PACKAGE THROW THIS COMMAND composer require qusai/easy-upload-files
  • ADD THE SERVEICE PROVIDER IN THE app.php
        Qusai\Upload\Providers\UploadFileServiceProvider::class 
  • GO TO THE filesystem.php AND ADD THIS CODE INIT SO THE PACKAGE WILL WORK PROPERLY
       'easy_file_uploader' => [
            'driver' => 'local',
            'root'   => public_path() . '/',
             'url' => env('APP_URL'). '/',
             'visibility' => 'public'
        ]
  • WHEN YOU NEED TO USE THIS PACKAGE YOU CAN CALL IT LIKE THIS
        use Qusai\Upload\UploadFiles;

        class className extends Controller {
                ...
                use UploadFiles;

                public function functionName(Request $request)
                {
                        .....
                        $this->uplaodFile('FOLDERNAME',$request->file('FILE INPUT NAME IN THE REQUEST'));
                }
        }

GOOD LUCK:)

License: MIT