Type error: Argument 1 passed to Illuminate\Database\Grammar::parameterize() must be of the type array, boolean given, called in /var/www/html/laravel/vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/Grammar.php on line 681
>>> factory(App\Todo::class, 10)->create();
TypeError: Argument 1 passed to Illuminate\Database\Grammar::parameterize() must be of the type array, string given, called in /home/vagrant/Code/TODO/vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/Grammar.php on line 672
现在不是把所有的faker factory 放到 ModelFactory 了,而是每个表一个factory model ,这样执行factory(\App\Work::class, 10)->create();会报一个 Undefined variable: work in /Applications/MAMP/htdocs/portfolio/database/factories/WorkFactory.php 的错误
生成假数据时候是不是哪里得写一个映射,让表和factory model 可以一一对应