Risul Islam
Risul Islam

Reputation: 806

Laravel migration: drop specific table and remove migration file using artisan command

I have been working using Laravel. I was thinking about this problem. Is it possible to drop a specific table and remove migration file using just a artisan command?

I know there are couple of ways to do these job like Schema::drop('') or creating new migration etc. I am just curious to find such artisan command to do these job.

Thanks.

Upvotes: 1

Views: 1133

Answers (2)

Illia Yaremchuk
Illia Yaremchuk

Reputation: 2025

You can create your custom artisan command.

artisan make:command

Upvotes: 0

Marek Skiba
Marek Skiba

Reputation: 2184

It's not possible to do this in one command without writing your own artisan command (artisan make:command) - https://laravel.com/docs/5.3/artisan#writing-commands

Upvotes: 1

Related Questions