Files
fewo-stommer/app/Filament/Resources/Channels/Pages/CreateChannel.php
T
Lars 8927f2eeb1
Deploy FeWo mit PipelineManager / deploy (push) Successful in 2m37s
Kalenderabgleich ueber iCal von weiteren Portalfunktionen abgrenzen
2026-10-27 18:07:48 +01:00

32 lines
847 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Filament\Resources\Channels\Pages;
use App\Actions\ConfigureChannel;
use App\Filament\Resources\Channels\ChannelResource;
use App\Models\Property;
use Filament\Resources\Pages\CreateRecord;
use Illuminate\Database\Eloquent\Model;
class CreateChannel extends CreateRecord
{
protected static string $resource = ChannelResource::class;
protected function handleRecordCreation(array $data): Model
{
$property = Property::query()->findOrFail($data['property_id']);
return app(ConfigureChannel::class)->handle($property, $data);
}
protected function getCreatedNotificationTitle(): ?string
{
return 'iCal-Verbindung angelegt – Exportlink automatisch erzeugt';
}
protected function getRedirectUrl(): string
{
return ChannelResource::getUrl('index');
}
}