Files
fewo-stommer/app/Filament/Resources/Channels/Pages/CreateChannel.php
T
Lars 1f59cbb9a5
Deploy FeWo mit PipelineManager / deploy (push) Successful in 2m34s
Eigene Verwaltung fuer frei konfigurierbare Portale und Kalender anbieten
2026-10-27 17:29:24 +01:00

32 lines
851 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 'Portalkanal angelegt – eigener Exportlink automatisch erzeugt';
}
protected function getRedirectUrl(): string
{
return ChannelResource::getUrl('index');
}
}