PHP code example of webmavens / laravel-storage-clear
1. Go to this page and download the library: Download webmavens/laravel-storage-clear 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/ */
webmavens / laravel-storage-clear example snippets
bash
php artisan storage:clear
php artisan storage:clear
php artisan storage:clear --disk=local
php artisan storage:clear --disk=s3 --folder=foldername
php artisan storage:clear --disk=s3 --folder=somefolder/foldername
php artisan storage:clear --disk=local --folder=foldername --force //Force the operation to run when in production
> php artisan storage:clear --disk=local --folder=staging
Cleared folder [staging] on disk [local]