#CategoryFactory
public function definition()
{
$name = $this->faker->word();
$statuses = [
"1",
"0"
];
return [
'name' => $name,
'slug' => Str::slug($name),
'description' => $this->faker->paragraph(),
'status' => $statuses[rand(0,1)]
];
}
#BlogFactory
public function definition()
{
$title = $this->faker->sentence(rand(4,6));
$stats = ["0", "1", "2"];
return [
'user_id' => rand(1,10),
'title' => $title,
'slug' => Str::slug($title),
'content' => $this->faker->paragraph(),
'status' => $stats[rand(0,2)]
];
}