Eigene Verwaltung fuer frei konfigurierbare Portale und Kalender anbieten
Deploy FeWo mit PipelineManager / deploy (push) Successful in 2m34s
Deploy FeWo mit PipelineManager / deploy (push) Successful in 2m34s
This commit is contained in:
1 parent
783068501c
commit
1f59cbb9a5
13 files changed
+541
-197
No files matched your search
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Channels\Pages;
|
||||
|
||||
use App\Actions\ConfigureChannel;
|
||||
use App\Filament\Resources\Channels\ChannelResource;
|
||||
use Filament\Resources\Pages\EditRecord;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class EditChannel extends EditRecord
|
||||
{
|
||||
protected static string $resource = ChannelResource::class;
|
||||
|
||||
protected function mutateFormDataBeforeFill(array $data): array
|
||||
{
|
||||
return [...$data, 'settings' => $this->record->settings];
|
||||
}
|
||||
|
||||
protected function handleRecordUpdate(Model $record, array $data): Model
|
||||
{
|
||||
return app(ConfigureChannel::class)->handle($record->property, $data, $record);
|
||||
}
|
||||
|
||||
protected function getRedirectUrl(): string
|
||||
{
|
||||
return ChannelResource::getUrl('index');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user