truncate all tables in laravel using eloquent

前端 未结 6 579
别跟我提以往
别跟我提以往 2021-02-05 02:52

Is there a way I could truncate all the tables in a db using eloquent or fluent in laravel 4? I do not want to specify table names, I just want to truncate all the tables. In ot

6条回答
  •  南笙
    南笙 (楼主)
    2021-02-05 03:39

    In laravel 5, migrate:fresh will drop all the tables in the database (even if tables aren't related to migrate)

提交回复
热议问题