DomThomas
DomThomas
FFilament
Created by DomThomas on 3/26/2025 in #❓┊help
I don't understand how I can refresh a field
It's ok, if I do this (on the same field) :
RichEditor::make('ia_description')
->label('Description IA')
->columnSpanFull()
->hintAction(
Action::make('generateIA')
->label('Générer')
->icon('heroicon-o-light-bulb')
->action(fn (callable $set, Product $record) => $set('ia_description', AIService::getDescription($record)))
),
RichEditor::make('ia_description')
->label('Description IA')
->columnSpanFull()
->hintAction(
Action::make('generateIA')
->label('Générer')
->icon('heroicon-o-light-bulb')
->action(fn (callable $set, Product $record) => $set('ia_description', AIService::getDescription($record)))
),
7 replies
FFilament
Created by DomThomas on 3/26/2025 in #❓┊help
I don't understand how I can refresh a field
it's the same 😦 I don't understand how I can use $set properly
7 replies
FFilament
Created by DomThomas on 3/26/2025 in #❓┊help
I don't understand how I can refresh a field
Thanks, but I don't understand 🧐
7 replies
FFilament
Created by DomThomas on 5/17/2024 in #❓┊help
Is it possible to do two exports on the same Model ?
Ok, I found, You need to copy/paste the class, It's not possible with CLI
3 replies
FFilament
Created by Sourabh on 5/2/2024 in #❓┊help
Tooltip on table column header
tooltip is for the row
6 replies
FFilament
Created by Sourabh on 5/2/2024 in #❓┊help
Tooltip on table column header
it's not very clean, but like this ?
Tables\Columns\TextColumn::make('name')
->label(new HtmlString("<abbr title='Price at magento site'>Price</abbr>"))
->tooltip('Price at magento site')
->sortable()
->searchable(),
Tables\Columns\TextColumn::make('name')
->label(new HtmlString("<abbr title='Price at magento site'>Price</abbr>"))
->tooltip('Price at magento site')
->sortable()
->searchable(),
6 replies
FFilament
Created by codeartisan on 5/2/2024 in #❓┊help
Auto increment column
Don't forget to mark solved
6 replies
FFilament
Created by codeartisan on 5/2/2024 in #❓┊help
Auto increment column
6 replies
FFilament
Created by giro on 11/14/2023 in #❓┊help
CreateOptionForm auto assign after create
I think it's ok with a not native select.
4 replies
FFilament
Created by Frank on 11/29/2023 in #❓┊help
Reuse a Form Resource in createOptionForm
Like this no ?
Forms\Components\Select::make('artwork_id')
->relationship(
name: 'artwork',
titleAttribute: 'name',
modifyQueryUsing: fn (Builder $query) => $query->where('organisation_id', $organisationId),
)
->searchable(['name', 'original_name'])
->createOptionForm(
fn(Form $form) => ArtworkResource::form($form)
),
Forms\Components\Select::make('artwork_id')
->relationship(
name: 'artwork',
titleAttribute: 'name',
modifyQueryUsing: fn (Builder $query) => $query->where('organisation_id', $organisationId),
)
->searchable(['name', 'original_name'])
->createOptionForm(
fn(Form $form) => ArtworkResource::form($form)
),
3 replies
FFilament
Created by sdousley on 4/10/2024 in #❓┊help
createOptionForm not adhering to model policies
Yes, for this sample, I do this :
Select::make('industry_id')
->relationship('industry', 'name')
->searchable()
->preload()
->createOptionForm([
TextInput::make('name')
->required(),
])
->createOptionAction(fn (Forms\Components\Actions\Action $action) =>
$action->authorize('create',Industry::class))
Select::make('industry_id')
->relationship('industry', 'name')
->searchable()
->preload()
->createOptionForm([
TextInput::make('name')
->required(),
])
->createOptionAction(fn (Forms\Components\Actions\Action $action) =>
$action->authorize('create',Industry::class))
3 replies
FFilament
Created by yoni on 4/1/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
indeed, I think it's the problem here.
16 replies
FFilament
Created by yoni on 4/1/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
Do you are on a private server ?
16 replies
FFilament
Created by yoni on 4/1/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
Do you have something in the route file ?
16 replies
FFilament
Created by DomThomas on 4/1/2024 in #❓┊help
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'insertBefore')
Ok, I fine the problem. I install filament on a existing project and Livewire was loaded twice....
5 replies