35 lines
911 B
PHP
35 lines
911 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Channel;
|
|
use App\Models\Property;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<Channel>
|
|
*/
|
|
class ChannelFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'property_id' => Property::factory(),
|
|
'name' => fake()->randomElement(['FeWo-direkt', 'Ostseeklar', 'ferienundwohnen.de']),
|
|
'connector' => 'ical',
|
|
'settings' => ['import_url' => 'https://portal.example/ical/'.fake()->uuid().'.ics'],
|
|
'is_active' => true,
|
|
'status' => 'active',
|
|
'import_enabled' => true,
|
|
'export_enabled' => true,
|
|
'export_mode' => 'regular',
|
|
'requires_manual_blocking' => false,
|
|
];
|
|
}
|
|
}
|