Files
fewo-stommer/database/factories/ChannelFactory.php
T
Lars 783068501c
Deploy FeWo mit PipelineManager / deploy (push) Successful in 2m33s
Generische iCal-Kanäle mit Bestandsklärung und sicheren Exporten bereitstellen
2026-10-27 17:14:45 +01:00

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,
];
}
}