Eigene Verwaltung fuer frei konfigurierbare Portale und Kalender anbieten
Deploy FeWo mit PipelineManager / deploy (push) Successful in 2m34s

This commit is contained in:
Lars committed 2026-10-27 17:29:24 +01:00
1 parent 783068501c
commit 1f59cbb9a5
13 files changed
+541 -197

No files matched your search

@@ -0,0 +1,31 @@
<?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');
}
}