Is sortable() and/or searchable() possible on a HasOneThrough relation?
I don't think I have asked this before...
But it is a hard one.
The setup:
- One Staff can have many positions....
Is it possible to test broadcast notifications?
I'm currently using reverb to broadcast notifications, everything is working fine and the notifications are coming through. I'd like to run some tests to ensure this is always the case but I can't seem to get
assertNotified
to return true
while using toBroadcast()
. If I switch it back to send()
the notification test passes (which a few other small changes - eg. removing notification from notify()
function.)
I'm triggering the notification like this:
```...Help with dependable select
I've a dependable select 'province' that depends on the select 'country', both of the inputs are nested within a repeater.
the problem is with the province select, as you can see in the code, if i set the fallback return value for options to ` it works as expected (but it leave an extra padding space under the placeholder) but if i simply return an empty array, the select wouldn't react or change when i change the country, can anyone explain please?
here's the code;...
`['' => '']
`['' => '']
Help with Filament Modal Component
I'm using the Filament modal to open a chatbot interface defined in a custom Livewire component. I would like to scroll to the bottom of the chat interface when the modal is open. I was using the
model-opened
event to scroll to the bottom, but it's not working as I expected. It seems that modalElement.scrollHeight
is set to 0, and even if I hardcode a position in the scrollTo method, it doesn't take effect. It feels like I might have the wrong element. Does anyone have recommendations or solutions on how I can resolve this?
```<x-filament::modal
width="lg"
heading="Chatbot"...Chunked uploads
Hi, I want to upload large files 1 GB+ using Filament's file upload form field but it does not support it. Is there any way to achieve this?
Keybind to trigger 'save and create another'
Is there any such functions to add a specific keybind to trigger this, or would I have to publish filament and add the js directly?
Make custom form like GForm
Hello, I have a new project to make a custom form like GForm where the user tenant can create custom forms themselves. So the custom forms will made and appear on the front page and filled by the guest.
Is that possible in filament? Do you have any suggestions? Thank you and have a nice day!...
Is that possible in filament? Do you have any suggestions? Thank you and have a nice day!...
infolist with livewire
Hello all,
I have livewire component that show list of members and I have Viewaction that show member details in infolist, I pass the $record from livewire to MemberForm class correctly (I try dd($record) and show corret data ) but inside infolist it didn't show anything....
Solution:
```php
ViewAction::make()
->infolist([
TextEntry::make('type'),
......
Remove Manage Subscription from tenant menu
I implemented the billing functionality using laravel spark, is it possible to hide or remove the manage subscription in tenant menu I'm planning on moving it in my sidebar.
Solution:
You have billing enabled, so
```php
->tenantMenuItems([
'billing' => MenuItem::make()->label('Manage subscription')->visible(false),...
How to Save Filter Results in Raw Format for Later Use?
I want to capture the results of a filtered list in raw format and save it to a database for later use. For example, I filter users and then need to send them bulk messages. If I retrieve these results directly through BulkAction, it results in a very large list. What would you recommend to handle this efficiently?
Permission on Relation Manager
Hello I'm currently using a Filament shield plugin I'm using relation manager on 1 resource i want to include the relation manager to have roles and permission. Can anyone help me please?
Bypass validation
Are there any possible way to disable these validation when I click the Save draft action?
I already have implemented a
Draftable
trait the implement and use the SaveDraftAction
action inside it....Input/Textarea with suggestions
I'm looking for a component that has auto-complete suggestion, something like Jira or Github when you type @ and it shows you the users you can tag.
If someone has done it and wants to expose it as a package or give me some guidelines, I would appreciate it a lot....
School-Class-Manager Usability-Problem
Let's imagine we have tool to manage school classes. Each school class has many students, documents, timetables, events and a lot more. All further tables have a school_class_id.
At the moment I see two options to make them managable in Filament:
1) All resources are linked in the filament menu. Problem: Clicking on students for exmaple would list all students of all classes.
2) I only link school classes in the menu and all other resources I show in the detail-view of the school class.
...
Solution:
Then you can add a second layer with a BelongsToMany for schools in the teacher model
You can even create two different panels, one for the school owners with tenancy on schools to manage teachers and one with tenancy on teachers to manage classes
This could work quite well but will add a lot of complexity
Something that could be more simple would be to use policies well configured and query scoping...
Create single record from HasMany relationship in infolist actions
Hey,
I'm trying to figure a way to show an action to create a single record in a HasMany relationship within an infolist page with
SpatieMediaLibraryFileUpload
field
I tried multiple things but couldn't figure how to
...Redirect to Profile On UsersRessource
Am trying to redirect the user to his own profile if he's trying to view or edit his own record on UsersRessource
Am hiding his record with
ModifyQueryUsing on $table on UsersRessource
...
Using rules on data not inside the form
Evening,
I've want to make a field unique, but only within a subset. For example, if I am adding a Tag name, but I want that unique within a Type, but other Types could have the same name.
I don't record the Type on the form, I add that to the DB using the
->mutateFormDataUsing
method....Filament: panelLayout('grid') on SpatieMediaLibraryFileUpload
Hello, I'd like to display my images in a grid like this, but currently, there's still padding around the images. When I use panelLayout('compact'), all the padding is removed, but it leaves no space at all. Has anyone found a solution to fully cover the images in a grid?