𝓑𝓾𝓼𝓽𝔂 𝓝π“ͺ𝓲𝓡
𝓑𝓾𝓼𝓽𝔂 𝓝π“ͺ𝓲𝓡
FFilament
Created by UrbanizedSpy on 9/26/2023 in #β“β”Šhelp
Change CreateRecord cancel link
oh see now ure using v2.. this solution is for v3, but maybe it works also in v2
6 replies
FFilament
Created by UrbanizedSpy on 9/26/2023 in #β“β”Šhelp
Change CreateRecord cancel link
Add this to your xxxResource/Pages/CreateXXX.php
use Filament\Actions\Action;

protected function getCancelFormAction(): Action
{
return Action::make('cancel')
->label(__('filament-panels::resources/pages/edit-record.form.actions.cancel.label'))
->url(url('/admin')) // edit /admin with where it should be redirected.
->color('gray');
}
use Filament\Actions\Action;

protected function getCancelFormAction(): Action
{
return Action::make('cancel')
->label(__('filament-panels::resources/pages/edit-record.form.actions.cancel.label'))
->url(url('/admin')) // edit /admin with where it should be redirected.
->color('gray');
}
6 replies
FFilament
Created by 𝓑𝓾𝓼𝓽𝔂 𝓝π“ͺ𝓲𝓡 on 9/25/2023 in #β“β”Šhelp
customize edit page
found it out
protected static ?string $title = 'Manage Api token';
protected static ?string $breadcrumb = 'Manage';


protected function getFormActions(): array
{
return [
// $this->getSaveFormAction(),
// $this->getCancelFormAction(),
];
}

protected function getForms(): array
{
return [
'form' => $this->form(static::getResource()::form(
$this->makeForm()
->operation('edit')
->model($this->getRecord())
->statePath($this->getFormStatePath())
->columns($this->hasInlineLabels() ? 1 : 2)
->inlineLabel($this->hasInlineLabels())
->disabled(),
)),
];
}
protected static ?string $title = 'Manage Api token';
protected static ?string $breadcrumb = 'Manage';


protected function getFormActions(): array
{
return [
// $this->getSaveFormAction(),
// $this->getCancelFormAction(),
];
}

protected function getForms(): array
{
return [
'form' => $this->form(static::getResource()::form(
$this->makeForm()
->operation('edit')
->model($this->getRecord())
->statePath($this->getFormStatePath())
->columns($this->hasInlineLabels() ? 1 : 2)
->inlineLabel($this->hasInlineLabels())
->disabled(),
)),
];
}
3 replies
FFilament
Created by 𝓑𝓾𝓼𝓽𝔂 𝓝π“ͺ𝓲𝓡 on 9/25/2023 in #β“β”Šhelp
TextInput description
thanks..
5 replies
FFilament
Created by 𝓑𝓾𝓼𝓽𝔂 𝓝π“ͺ𝓲𝓡 on 7/27/2023 in #β“β”Šhelp
Foreign Table / Managing relationships
thx
5 replies
FFilament
Created by 𝓑𝓾𝓼𝓽𝔂 𝓝π“ͺ𝓲𝓡 on 7/27/2023 in #β“β”Šhelp
Foreign Table / Managing relationships
attach i guess
5 replies