Arjen
Table column loses data when sorting by relationship
I have the following relation
Booking
-> HasMany -> Dayparts
where Dayparts
has a field date
. I want to sort courses by the first child in Dayparts
and while the code for that sorts the items in the table correctly, the data in the sorted column in the table just disappears. When the table is not sorted, the date is showing correctly. Any idea what I'm doing wrong? This is the table column in the BookingResource
:
I tried changing 'dayparts.0.date'
to 'date'
as well, but that changes nothing.3 replies
Convert Filament::registerScripts
Hi, how do I convert the following piece of code from v2 to v3
FilamentAsset
? I want to use the compiled code at public/build/assets/app-fdfe8a8c.js
(for example) instead of the source in resources/js/app.js
5 replies
Best way to include script
Hi, I've registered a custom script like this:
This works, but running
php artisan filament:assets
produces the following type error Filament\Support\Assets\Asset::getPath(): Return value must be of type string, null returned
...5 replies
Programmatically select a tab
Is it possible to programmatically select a tab? I have two tabs but based on a radio field, the first tab may get hidden. If that tab is selected, the other one doesn't automatically get selected so you'll only see the second tab (inactive) without the tab content.
2 replies
Error when prefilling from query string in resource with persistTabInQueryString enabled
Hi, I get the following error when persisting tabs in query string enabled when creating a form or uploading files inside the form: https://flareapp.io/share/xPQ3Xol5#F113
The query strings looks like this:
?event_start=2023-03-04&event_end=2023-03-04&tab=tabs-evenement-tab
, and the code for filling like this (not sure if it is the correct way to handle it):
11 replies