@vapenation Unfortunately that didn't work. I'm still seeing the error.
Nov 26, 2016
4
Level 8
Seeding Problem - Array to string conversion
Hi,
I'm pretty new to Laravel and I just got in on the Laracasts Black Friday promotion and I'm so excited.
I'm hoping somebody can help me with this.
When I try to seed my database with a model factory, I'm getting the following error:
[Illuminate\Database\QueryException]
Array to string conversion (SQL: insert into `proposals` (`user_id`, `title`, `prepared_for`, `phone`, `email`, `client_needs`, `number_of_pages`, `cms`, `analytic
s`, `hosting`, `domain_name`, `social_media`, `logo`, `mailing_list`, `facebook_profile`, `e_commerce`, `sitemap`, `total_time`, `discount_percentage`, `discount_d
ollar`, `additional_cost`, `updated_at`, `created_at`) values (1, SOMETHING interesting is., Casey Nikolaus, 852.908.3403 x3033, [email protected], Quo
deserunt rerum illum assumenda. Error modi nam velit. Sunt ab quaerat aut. Sunt voluptatum nobis voluptatem ut., 25, 1, 1, 1, 1, 0, 0, 0, 1, 1, http://lorempixel.c
om/640/480/022815, 44, 29, 677, 2016-11-26 17:34:29, 2016-11-26 17:34:29, ?))
[ErrorException]
Array to string conversion
Here's a Gist showing my model factory code and also the migration I used to create the table:
https://gist.github.com/bahamagician/264ea2134357e03dfd6dff373850e394
I can provide additional info if needed. Where did I go wrong?
Thanks in advance for any assistance :)
-=Chris
Level 8
Looks like it was
'client_needs' => $faker->paragraphs,
Paragraphs returns an array. I had to change it to "paragraph"
10 likes
Please or to participate in this conversation.