PHP code example of ehel / laravelfileupload

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

    

ehel / laravelfileupload example snippets


'providers' => [
    //...
    Ehel\FileUpload\FileUploadServiceProvider::class,
    //...
];

  'aliases' => [
    // ...
      'FileUpload' => Ehel\FileUpload\FileUploadFacade::class
    // ...
  ],

{!!FileUpload::buttons($uploadDirectory, $className) !!}

{!!FileUpload::script($uploadSuccess, $uploadFail, $deleteSuccess, $deleteFail, $ajaxUploadFail) !!}

php artisan vendor:publish