Generic-University icon indicating copy to clipboard operation
Generic-University copied to clipboard

Illuminate\Database\Eloquent\ModelNotFoundException

Open mgdzura opened this issue 2 years ago • 0 comments

I am trying to setup Generic University. When I run the command php artisan db:seed I get the following error:


No query results for model [App\User] 9

  at vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:444
    440|         } elseif (! is_null($result)) {
    441|             return $result;
    442|         }
    443| 
  > 444|         throw (new ModelNotFoundException)->setModel(
    445|             get_class($this->model), $id
    446|         );
    447|     }
    448| 

      +3 vendor frames 
  4   database/seeds/ExtraGradesTableSeeder.php:12
      Illuminate\Database\Eloquent\Model::__callStatic()

      +7 vendor frames 
  12  database/seeds/DatabaseSeeder.php:19
      Illuminate\Database\Seeder::call()

mgdzura avatar Dec 12 '22 19:12 mgdzura