jlove1672
Route query string values don't persist with pagination in Table
If record is a custom query parameter you set on the get request to your BeneficiaryTransactionResource list page you can do this:
One way you could achieve this is by making a ListBeneficiaryTransactionResource class (should have this file already as filament auto created them if you use the resource helper)
Then inside that list class add a url property (livewire auto sets this based on the url query param:
#[Url]
public $record = '';
Then you can create a function inside the same class that modifies the table query for the resource like:
protected function getTableQuery(): Builder
{
dd($this->record);
return parent::getTableQuery()
->where('user_id', $this->record)
}
11 replies
Infolist with pages?
You should be able to customise where you when clicking a table row like this:
public function table(Table $table): Table
{
return $table
->recordUrl(
fn (Model $record): string => route('posts.edit', ['record' => $record]),
);
}
4 replies
Issue with button color theming on front-end (forms, etc)
You should just be able to use your defined tailwind colors for frontend work - thats what we do
We define a set of brand colors inside tailwind.config.js - its separate to our backend which is built with filament-panels
16 replies
Error with Builder Field
You can intercept the data before its saved by going into your CreatePages.php and adding this method
protected function mutateFormDataBeforeCreate(array $data): array
{
dd($data)
}
This will help you see the format of content before its saved and allow you to modify it to suit your underlying db schema
8 replies
Call modal from anywhere on filament admin panel
Thanks for getting back. Ive decided to just stick with my original method of registering my custom livewire modal component via hooks as theres a small bit of func required to happen inside the modal on the php end 👍
7 replies