murilochianfa/laravel-command-blocker
Blocks specified Artisan commands from running in Laravel, letting you disable dangerous or unwanted console commands per environment. Lightweight package for adding command-level guardrails to your app.
Install with Composer and let Laravel package discovery register the service provider. Publish the package config if the README provides a vendor:publish tag, then open the config file first; that is where the day-to-day control lives. Confirm whether rules are global, per-environment, or command-list based before adding anything.
A sensible first use case is a production/staging guard for destructive Artisan commands (migrate:fresh, db:wipe, queue:clear, etc.). After editing config, run php artisan config:clear and test one allowed and one blocked command. v1.0.1 is a patch release: it fixes failures when configured commands are not present, so it is the safer starting point for apps whose command set varies by environment or installed packages.
App::environment()-based config values.php artisan config:cache during deploy.php artisan list.php artisan config:clear or rebuild cache.config:cache, route:cache, migrate --force) without testing the whole pipeline.How can I help you explore Laravel packages today?