Get name as a string and not an array
This commit is contained in:
parent
42a4941ad2
commit
4fb86ad2fb
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class ConsumableFactory extends Factory
|
|||
public function definition()
|
||||
{
|
||||
return [
|
||||
'name' => $this->faker->words(),
|
||||
'name' => $this->faker->words(3, true),
|
||||
'category_id' => Category::factory(),
|
||||
'user_id' => User::factory()->superuser(),
|
||||
'item_no' => $this->faker->numberBetween(1000000, 50000000),
|
||||
|
|
Loading…
Add table
Reference in a new issue