oliverbusk
oliverbusk
Explore posts from servers
FFilament
Created by oliverbusk on 8/19/2024 in #❓┊help
Table actions not firing
After adding id to the select it works! Thank you Dennis! However, shouldn't the getTableRecordKey do the same as replacing the id ?
7 replies
FFilament
Created by oliverbusk on 8/19/2024 in #❓┊help
Table actions not firing
No, I am not selecting any id column, since the table is grouped: However, I am setting a record key for the table:
public function getTableRecordKey($record): string
{
return 'department_' . $record->department_id;
}
public function getTableRecordKey($record): string
{
return 'department_' . $record->department_id;
}
7 replies
FFilament
Created by oliverbusk on 8/19/2024 in #❓┊help
Table actions not firing
It's returning this:
public function getIncentiveRequests() : Builder
{
return OIPRequest::query()
->with(['department', 'branch'])
->select('branch_id', 'department_id', 'business_type', 'expire_at')
->where('status', 'approved');
}
public function getIncentiveRequests() : Builder
{
return OIPRequest::query()
->with(['department', 'branch'])
->select('branch_id', 'department_id', 'business_type', 'expire_at')
->where('status', 'approved');
}
I tried to scrape the class of everything, and just return a table with a standard query (like: OIPRequest::query()), but to no avail 😦
7 replies
FFilament
Created by Pedroesca on 8/18/2024 in #❓┊help
Layout modification
Have you tried setting this in the panel provider?
use Filament\Support\Enums\MaxWidth;
//...

->maxContentWidth(MaxWidth::Full)
use Filament\Support\Enums\MaxWidth;
//...

->maxContentWidth(MaxWidth::Full)
See: https://filamentphp.com/docs/3.x/panels/configuration#customizing-the-maximum-content-width
6 replies