5.5 工厂类写入失败


>>> factory(App\Post::class,50)->create();
TypeError: Argument 1 passed to Illuminate\Database\Grammar::parameterize() must be of the type array, object given, called in E:\laravel55\laravel55\vendor\laravel\framework\src\Illuminate\Database\Query\Grammars\Grammar.php
on line 681

ff97e9c876abb4e019cc5d2f8fbe6471.png

Vote Vote Cancel Collect Collect Cancel

<< 上一篇: Laravel中除了在服务提供者中还能绑定实例到容器吗?

>> 下一篇: 这样的子查询如何构建?