按照教程一步一步来,删除生成的[timestamp]_create_followers_table.php之后,执行$composer dump,之后再执行 $ php artisan migrate --seed,还是会报错:Illuminate\Database\QueryException : SQLSTATE[42S01]: Base table or view already exists: 1 050 Table 'followers' already exists (SQL: create table followers (id int unsigned not nul l auto_increment primary key, user_id int not null, follower_id int not null, created_at timestamp null, updated_at timestamp null) default character set utf8mb4 collate 'utf8mb4_u nicode_ci')
推荐文章: