Laravel Fatal Error Class Not Found when migrating

后端 未结 11 2116
后悔当初
后悔当初 2021-02-02 11:39
  1. I\'ve run artisan migrate:reset.

  2. I\'ve deleted some of my migration files because I didn\'t need these tables anymore.

  3. I

11条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-02 12:13

    version 5.1.3 same problem fix it me:

    • drop database all tables
    • php artisan migrate:status

    output: No migrations found. ok use it

    • php artisan migrate:install
    • php artisan migrate

    output is:

    Migrated: 2016_11_24_093015_dt_some_table
    Migrated: 2016_12_05_141004_dt_some_table
    Migrated: 2016_12_07_110518_dt_some_table
    Migrated: 2016_12_08_141807_dt_some_table
    Migrated: 2016_12_13_090832_dt_some_table
    

    this problem is solved

提交回复
热议问题