Package with laravel database commands.
composer require mcmatters/laravel-db-commands
If you don't use package discovering feature, then just include the service provider within your config/app.php
file.
'providers' => [
McMatters\LaravelDbCommands\ServiceProvider::class,
]
Available commands:
php artisan db:drop-tables
β drops all tables.php artisan migrate:single {"file" or "class"}
β migrate single migration by file or class name.php artisan migrate:drop-single {"file" or "class"}
β drop single migration by file or class name.