PHP code example of qusai / easy-upload-files

1. Go to this page and download the library: Download qusai/easy-upload-files library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

qusai / easy-upload-files example snippets

 
        Qusai\Upload\Providers\UploadFileServiceProvider::class 

       'easy_file_uploader' => [
            'driver' => 'local',
            'root'   => public_path() . '/',
             'url' => env('APP_URL'). '/',
             'visibility' => 'public'
        ]

        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'));
                }
        }