Skip to content

Artisan Commands ​

CommandPurpose
php artisan mediaflow:clean-tempDelete expired temporary upload sessions and their files. Add --dry-run to only count them.
php artisan mediaflow:verify-storageCheck that every media record still has its file in storage. Prints a summary and exits with a failure code when files are missing, which makes it useful in CI or monitoring. Add --disk=public to check one disk.

Scheduling ​

php
// routes/console.php
use Illuminate\Support\Facades\Schedule;

Schedule::command('mediaflow:clean-temp')->hourly();
Schedule::command('mediaflow:verify-storage')->weekly()->emailOutputOnFailure('ops@example.com');

Publish tags ​

TagPublishes
mediaflow-configconfig/mediaflow.php
mediaflow-assetspublic/vendor/mediaflow/{css,js,img}
mediaflow-migrationsMigrations into database/migrations
mediaflow-viewsBlade views into resources/views/vendor/mediaflow
bash
php artisan vendor:publish --tag=mediaflow-assets --force

Re-publish the assets after every update so the CSS and JavaScript match the PHP code.

Released under the MIT License.