简体   繁体   中英

How to delete table in Laravel 5.8?

I want to delete table from database using migration command in Laravel 5.8, Help me Out.

You can delete table like this way in laravel

Schema::drop('tableName');

//for more safe way
Schema::dropIfExists('tableName');

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM