PHP code example of kalynasolutions / laravel-tus

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

    

kalynasolutions / laravel-tus example snippets


$schedule->command('tus:prune')->hourly()->runInBackground();

use KalynaSolutions\Tus\Events\TusUploadCreated;

protected $listen = [
    TusUploadCreated::class => [
        \App\Listeners\HandleTusUploadCreated::class,
    ],
    ...
];
bash
php artisan vendor:publish --tag="tus-config"