PHP code example of truongbo / uploadtolaravel

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

    

truongbo / uploadtolaravel example snippets


php artisan vendor:publish --provider="TruongBo\UploadToLaravel\UploadToLaravelServiceProvider"

    'time_limit' => 60, //The time that the host allows upload
    'wait_time' => 60, //Wait time upload then upload max request in per minute
    

php artisan migrate

php artisan upload:auto "App\Models\CrawlUrl" --limit=100