0
0

More than 3 years have passed since last update.

【Laravel】Seederの実行時の「Class UsersTableSeeder does not exist」というエラー

Posted at

状況

既存のSeederの名前を変更してから実行した際にエラーがこんなエラーが...

 ReflectionException  : Class UsersTableSeeder does not exist

解決策

下記を実行してからシーディングをするとうまくいきました。

$ composer dump-autoload

そもそもLaravelではクラスの参照はComposerを利用して行います。したがってクラスの変更があった場合はcomposer dump-autoloadのコマンドで更新します。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0