delboy1978uk
delboy1978uk
FFilament
Created by delboy1978uk on 4/16/2025 in #❓┊help
what is my custom page route?
maybe a dumb question, however! i am creating a new page triggered by a table row action for my 'broken parts' resource (on list page /admin/broken-parts) , but what is the route?
public static function getPages(): array
{
return [
'index' => Pages\ListBrokenParts::route('/'),
'resolve' => Pages\ResolveBrokenPart::route('{record}/resolve'),
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListBrokenParts::route('/'),
'resolve' => Pages\ResolveBrokenPart::route('{record}/resolve'),
];
}
my table actin is currenttly like this:
->actions([
Action::make('resolve')
->url(fn (ProductionItemBinStatus $record): string => route('admin/broken-parts/{record}/resolve', $record))
]);
->actions([
Action::make('resolve')
->url(fn (ProductionItemBinStatus $record): string => route('admin/broken-parts/{record}/resolve', $record))
]);
I tried several routes with no success, the one you see is what artisan routes:list tells me
3 replies
FFilament
Created by delboy1978uk on 4/3/2025 in #❓┊help
ExposesTableToWidgets throws error
So I am in a view order pages for an order resource, and i have added a widget. i'm trying to get the record, in the page I use ExposesTableToWidgets, but I get the livewire error Property [$activeTab] not found on component: In the trait the code is as follows:
public function getWidgetData(): array
{
return [
'activeTab' => $this->activeTab,
'paginators' => $this->paginators,
'tableColumnSearches' => $this->tableColumnSearches,
'tableFilters' => $this->tableFilters,
'tableGrouping' => $this->tableGrouping,
'tableGroupingDirection' => $this->tableGroupingDirection,
'tableRecordsPerPage' => $this->tableRecordsPerPage,
'tableSearch' => $this->tableSearch,
'tableSortColumn' => $this->tableSortColumn,
'tableSortDirection' => $this->tableSortDirection,
];
}
public function getWidgetData(): array
{
return [
'activeTab' => $this->activeTab,
'paginators' => $this->paginators,
'tableColumnSearches' => $this->tableColumnSearches,
'tableFilters' => $this->tableFilters,
'tableGrouping' => $this->tableGrouping,
'tableGroupingDirection' => $this->tableGroupingDirection,
'tableRecordsPerPage' => $this->tableRecordsPerPage,
'tableSearch' => $this->tableSearch,
'tableSortColumn' => $this->tableSortColumn,
'tableSortDirection' => $this->tableSortDirection,
];
}
What am I missing?
1 replies
FFilament
Created by delboy1978uk on 4/1/2025 in #❓┊help
Form select relationship help
I have a user which can have a resource_no, that points to the resources table however we do not use the ID, it points to the resources no column, however my select inserts the ID, can anyone help?
Select::make('resource_no')
->relationship('resource', 'name'),
Select::make('resource_no')
->relationship('resource', 'name'),
I tried changing the name of the select to use the dot notation to resource.no, but when I do that I get Unknown column 'resource' in 'field list'
9 replies
FFilament
Created by delboy1978uk on 3/31/2025 in #❓┊help
edit/delete modal from within relationship modal
No description
6 replies
FFilament
Created by delboy1978uk on 3/18/2025 in #❓┊help
always filter?
I am creating a page, but the only items from the db should have a boolean flag checked. I tried adding a filter, but that only put an optional filter at the top of the table, I need to always filter by this boolean column, can it be done?
4 replies
FFilament
Created by delboy1978uk on 3/17/2025 in #❓┊help
dispatched event not being listened to
In our API, we dispatch an event afte an item is created. I have tried doing the same on our Create page using this code, but nothing is listened to. How can I register my listeners with filament?
protected function afterCreate(): void
{
$this->dispatch(new DataCreated($this->record));
}
protected function afterCreate(): void
{
$this->dispatch(new DataCreated($this->record));
}
2 replies
FFilament
Created by delboy1978uk on 3/14/2025 in #❓┊help
AttachAction select contains no label
No description
1 replies
FFilament
Created by delboy1978uk on 3/14/2025 in #❓┊help
Having trouble setting up a belongs to many select
No description
7 replies
FFilament
Created by delboy1978uk on 3/12/2025 in #❓┊help
Repeater custom create function?
I can only seem to find docs on how to mutateRelationshipDataBeforeCreateUsing , but not a way to do the actual insert into the database ourselves, is this possible?
5 replies
FFilament
Created by delboy1978uk on 3/11/2025 in #❓┊help
file upload mutate on upload
When I mutate the data, i only get the generated filename, but i need the original uploaded file name for display purposes, is there a way to do this?
3 replies
FFilament
Created by delboy1978uk on 3/11/2025 in #❓┊help
select with option to create?
No description
5 replies
FFilament
Created by delboy1978uk on 3/11/2025 in #❓┊help
Modal with custom view sortable javascript?
I have a page with a custom modal configured like so
$action = Action::make('order_item_process_steps')
->label('Process steps')
->modalContent(fn(OrderItem $item): View => view(
'tables.order-item-process-steps',
[
'orderItemProcessSteps' => $item->orderItemProcessSteps,
'isReleased' => $releaseService->isReleased($item->order),
'rootStep' => $item->root_step_no,
],
))
->modalSubmitAction(false);
$action = Action::make('order_item_process_steps')
->label('Process steps')
->modalContent(fn(OrderItem $item): View => view(
'tables.order-item-process-steps',
[
'orderItemProcessSteps' => $item->orderItemProcessSteps,
'isReleased' => $releaseService->isReleased($item->order),
'rootStep' => $item->root_step_no,
],
))
->modalSubmitAction(false);
we used to have our pages as plain livewire, and we were using sortablejs , however the javascript in the view does not seem to work, I can't even seem to get a console log! Can anyone help?
5 replies
FFilament
Created by delboy1978uk on 2/27/2025 in #❓┊help
Select option formatting
Good morning filament fans! Is there a way to have a select using a relationship to display 2 columns ? I.e. product code and name? E.g. "WD-001 Wooden blocks"
8 replies
FFilament
Created by delboy1978uk on 2/17/2025 in #❓┊help
Modal with relationship table crud
Our old livewire edit order page had a row of items displaying on it. one of the columns was a count of associated rows from another table, which upon clicking would open a modal displaying those rows, can anyone tell me how this is possible? Currently I just display the row count as follows..
ViewColumn::make('step_count')
->view('tables/columns/step-count')
->action(function () {
// open modal here??
})
ViewColumn::make('step_count')
->view('tables/columns/step-count')
->action(function () {
// open modal here??
})
8 replies
FFilament
Created by delboy1978uk on 2/13/2025 in #❓┊help
Refresh a table
No description
12 replies