PHP code example of crcms / file-upload

1. Go to this page and download the library: Download crcms/file-upload 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/ */

    

crcms / file-upload example snippets




$config = ew \Illuminate\Config\Repository(['upload'=>$config]);

$upload = new \CrCms\Upload\FileUpload($config);

$file = $upload->config('test')->upload();
//default
$upload->upload();

print_r($file);

php artisan vendor:publish --provider="CrCms\Upload\LaravelServiceProvider"