想随机生成 30 条用户数据。。这怎么解决啊?
factory(User::class,30)->create();
Illuminate\Database\QueryException with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'name' in 'field list' (SQL: insert into `users` (`name`, `email`, `avatar`, `password`, `remember_token`, `updated_at`, `created_at`) values (Jayde Baumbach, isabella.collier@gmail.com, http://lorempixel.com/256/256/y$aQibeQk08g2omhrE.HyX7Oe8EaMrLBzCQW/GbKteqJIc71IrxtajG72678, 7hITma3uDG, 2016-02-18 23:17:25, 2016-02-18 23:17:25, ?))'
命令行报错啊。。。
推荐文章: