frame
Style tenant dropdown when user only has access to a single tenant
I would like to remove hover effects and the arrow down icon if the user only has a single tenant. Is that possible? I am not using a tenant profile page or other tenant menu items.
9 replies
Highlight changed/added rows using $table->recordClasses
I want to highlight rows that were changed or added until the user navigates away or does another change. I tried saving record IDs with
session()->flash
, but the rows are only highlighted for half a second until the notification appears and the table is redrawn without session flash.
Are there better ways to temporarily save highlighted row IDs for a user so I could use it in recordClasses
? 🤔2 replies
Overriding Filepond labels
uploadingMessage
corresponds to labelFileLoading
but can I also override the other labels?
https://pqina.nl/filepond/docs/api/instance/properties/#labels4 replies
FileUpload file validation after upload, before submit
Is it possible to validate a FileUpload field before submit? I can access the uploaded file using
afterStateUpdated
and similar functions, but is there any function other than rules
that has access to $fail
? I tried throwing ValidationError, etc but those didn't seem to work.5 replies
How to submit disabled fields
Is there something similar to immutable fields from Nova in Filament, so submit the field even if its disabled for the user. Or do I always need a pairing Hidden input for that use case? I tried
readOnly
but it's only available on Textinput.
https://nova.laravel.com/docs/v5/resources/fields#immutable-fields5 replies
Custom resource page $this->record null when searching/sorting
The table renders fine initially, but when trying to sort or search
$this->record
is null. Am I missing some trait or something? 🤔
Same question as this removed one https://discord.com/channels/883083792112300104/1301012727036121219
5 replies
Query string null in a relationmanager
I can read
request()->query('group')
in ViewUser::getTitle
just fine but in UserResource's ResultsRelationManager it returns null.
Is there a way to read URL query strings in a relationmanager, or some other way to pass data from Resource to Relationmanager? I need to alter both UserResource infolist and the ResultsRelationManager table under it based on this query string. 🤔13 replies
Adding where clause to query using current session
Can I always filter UserResource rows to only rows that belong to the same group as the current logged in user (
$query->where('group_id', auth()->user()->group_id
)? Where would I apply such a where clause? getTableQuery says deprecated — Override the table() method to configure the table
so I'm not sure how to do it 🤔6 replies
Searchable by pivot name
In a relationmanager I have records with column
name
and a pivot column name
. How do i make the table searchable by the pivot column? I already tried
Tables\Columns\TextColumn::make('name')->searchable()
(column works, search doesn't),
Tables\Columns\TextColumn::make('pivot.name')->searchable()
(column works, search doesn't) and
Tables\Columns\TextColumn::make('pivot_table_name.name')->searchable()
(neither works).4 replies