执行 factory (App\Models\UserAddress::class)->make () 操作出现 preg_match () 参数问题
PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/php/laravel/laravel-shop/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php on line 809
按着教程走,执行这部操作时,出现如下问题,请问该如何解决,从网上找了一下,可能要更改php.ini的报错error_reporting = E_ALL
范围,但是感觉这样做不太好
推荐文章: