19 lines
323 B
PHP
19 lines
323 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Category;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class CategoryFactory extends Factory
|
|
{
|
|
protected $model = Category::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => $this->faker->name(),
|
|
];
|
|
}
|
|
}
|