I am using laravel 5.2. I want to delete two laravel built-in migration files 2014_10_12_000000_create_users_table.php
and 2014_10_12_100000_create_password_resets_table.php
. But PhpStorm told me that there are two usages in other files' code. So if I delete them, I first delete two files' usages, and then delete two files, is that right?
First of all, check in your migrations
table if the file is migrated. If its migrated you can use: php artisan migrate:rollback
.
You can delete the files, after that you can run: composer dump-autoload
, this will recreate all the files generated by composer.
Hope this works!
If you've already ran migrate
command, run php artisan rollback
. Then delete these two files and run composer dumpauto
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.