start project

This commit is contained in:
MeghdadFadaee committed 2026-05-15 16:33:34 +03:30
1 parent 553238b0fb
commit d756661b45
50 files changed
+3523

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
class CategoryFactory extends Factory
{
public function definition(): array
{
$name = fake()->unique()->words(2, true);
return [
'name' => Str::headline($name),
'slug' => Str::slug($name),
'description' => fake()->optional()->sentence(),
];
}
}