feat: Model, resources, requests and controllers for shows and show instances

This commit is contained in:
Michael 2025-02-18 18:13:45 +01:00
parent 55d354bfc8
commit 385dd87f35
21 changed files with 690 additions and 0 deletions

View file

@ -0,0 +1,36 @@
<?php
namespace Database\Factories;
use App\Models\Show\Show;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Carbon;
class ShowFactory extends Factory
{
protected $model = Show::class;
public function definition(): array
{
return [
'name' => $this->faker->name(),
'url' => $this->faker->url(),
'genre' => $this->faker->word(),
'description' => $this->faker->text(),
'color' => $this->faker->word(),
'background_color' => $this->faker->word(),
'live_stream_using_airtime_auth' => $this->faker->boolean(),
'live_stream_using_custom_auth' => $this->faker->boolean(),
'live_stream_user' => $this->faker->word(),
'live_stream_pass' => $this->faker->word(),
'linked' => $this->faker->boolean(),
'is_linkable' => $this->faker->boolean(),
'image_path' => $this->faker->word(),
'has_autoplaylist' => $this->faker->boolean(),
'autoplaylist_id' => $this->faker->randomNumber(),
'autoplaylist_repeat' => $this->faker->boolean(),
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
];
}
}