jamesro
Custom page with table and filters
Hello,
I'm having an issue with my custom page where I use a table and table filters, for some reason the applied filters does not end up into my url
Here is how I use it:
```php
class Planning extends Page implements HasForms, HasTable
{
use InteractsWithTable;
use InteractsWithPageFilters;
use InteractsWithForms;
public static function table(Table $table): Table
{
return $table
->query(Planning::all())
->filters([
Filter::make('year')
->columns(2)
->form([
Select::make('year')
->label('Select year')
->options(
collect(range(date('Y'), date('Y') - 10))
->mapWithKeys(fn($year) => [$year => $year])
->toArray()
)
->searchable(),
])
}
the filters do get applied, but I don't see the active filters applied in my page url
Any help would be appriciated.
Thanks
5 replies
Relation manager with pivot table doesn't show pivot table field values when edit
Hello,
I have these relation on my User and Cars entities:
User entity:
Car entity:
Unfortunately, both my User entity and user_cars pivot table have these 3 colums on them:
'data_start', 'data_end', 'disabled'
Now when i try to edit an entry from user_cars using my relation manager, those 3 columns values does not get the values from the db, it works if I rename columns to something else in my pivot table:
This is relation manager form:
any how to make it work without having to rename those columns in my pivot table?
2 replies
FileUpload on relation ( HasOne) extra parameters
Hello,
I have a case where the i have a file() relation to another File entity, and that file entity has some extra fields required
Any way i can pass those extra fields values need, when I save my form?
7 replies
How can I hide a field inside a form or repeater, but still send its data
How can I hide a field inside a form or repeater, but still send its data ( i'm populating it's data from another field )
I've tried with hidden() and visible() but it seems its data is not sent when I submit the form
Regards
4 replies
Showing a modal with list of order products
Hello,
I'm trying to show the list of the order products inside a modal using table,
I've created a livewire component where I pass my order it and from there in my livewire component table i set a query to bring me a table with order products,
All good until i change orders page number, in the opened modal for some reason instead of starting from page number 1, it start from page set in my current orders table.
Any idea how i can fix this ?
2 replies