You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
674 B
PHP

<?php
namespace Database\Factories;
use Xmen\StarterKit\StarterKitFacade;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Model>
*/
class CatFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition()
{
return [
//
'name' => $this->faker->word,
'slug' => StarterKitFacade::slug($this->faker->unique()->word),
'parent_id' => null,
'sort' => 0,
'description' => $this->faker->realText(350),
];
}
}