start project

This commit is contained in:
2026-05-15 16:33:34 +03:30
parent 553238b0fb
commit d756661b45
50 changed files with 3523 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace Database\Factories;
use App\Models\Category;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
class ChannelFactory extends Factory
{
public function definition(): array
{
$name = fake()->unique()->words(2, true);
return [
'user_id' => User::factory(),
'category_id' => Category::factory(),
'slug' => Str::slug($name),
'display_name' => Str::headline($name),
'description' => fake()->sentence(),
'is_live' => false,
'viewer_count' => 0,
];
}
}