delboy1978uk
delboy1978uk
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