Get name as a string and not an array

This commit is contained in:
Marcus Moore 2023-06-05 12:57:09 -07:00
parent 42a4941ad2
commit 4fb86ad2fb
No known key found for this signature in database

View file

@ -27,7 +27,7 @@ class ConsumableFactory extends Factory
public function definition() public function definition()
{ {
return [ return [
'name' => $this->faker->words(), 'name' => $this->faker->words(3, true),
'category_id' => Category::factory(), 'category_id' => Category::factory(),
'user_id' => User::factory()->superuser(), 'user_id' => User::factory()->superuser(),
'item_no' => $this->faker->numberBetween(1000000, 50000000), 'item_no' => $this->faker->numberBetween(1000000, 50000000),