PHP code example of peinhu / aetherupload-laravel

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

    

peinhu / aetherupload-laravel example snippets


\AetherUpload\Util::deleteResource($savedPath); //删除对应的资源文件
\AetherUpload\Util::deleteRedisSavedPath($savedPath); //删除对应的redis秒传记录

* * * * * php /项目根目录的绝对路径/artisan schedule:run 1>> /dev/null 2>&1  

  $schedule->command('aetherupload:clean 2')->daily();

    'disks' => [
        ...
        'redis' => [
           'driver' => 'redis',
           'disable_asserts'=>true,
        ],
        ...
    ]

* * * * * php /项目根目录的绝对路径/artisan schedule:run 1>> /dev/null 2>&1  

  $schedule->command('aetherupload:build')->daily();