NolanN
NolanN
FFilament
Created by NolanN on 11/8/2024 in #❓┊help
Default option for select filter
I realized this is because I'm using multiple() so I need to return an array in default(). Here was what fixed it for me: ->default([Filament::getTenant()->tenant->leadTypeProfiles()->base()->first()->id])
4 replies
FFilament
Created by NolanN on 7/8/2024 in #❓┊help
Error notifications on create pages
🤦‍♂️
19 replies
FFilament
Created by NolanN on 7/8/2024 in #❓┊help
Error notifications on create pages
Yeah
19 replies
FFilament
Created by NolanN on 7/8/2024 in #❓┊help
Error notifications on create pages
I probably could chain wheres in this case but other cases I've needed whereHas but that isn't supported by the unique rule
19 replies
FFilament
Created by NolanN on 7/8/2024 in #❓┊help
Error notifications on create pages
No description
19 replies
FFilament
Created by NolanN on 7/8/2024 in #❓┊help
Error notifications on create pages
The problem with modify query is that you can't inject the record
19 replies
FFilament
Created by NolanN on 7/8/2024 in #❓┊help
Error notifications on create pages
Ah, hooks might be a good choice. I would use unique but I have 3 different fields that are used together in a unique DB index. I'm not sure how I would build a unique rule for that case
19 replies
FFilament
Created by NolanN on 7/8/2024 in #❓┊help
Error notifications on create pages
I suppose I could handle that with validation but I haven't done that with multiple columns
19 replies
FFilament
Created by NolanN on 7/8/2024 in #❓┊help
Error notifications on create pages
I'm thinking of a case where a database unique index would be violated.
19 replies
FFilament
Created by Prodex on 1/11/2024 in #❓┊help
Sub Navigation in ListView for Custom Page
Unfortunately that isn't the ideal situation in my case. I've used clusters some but I have a resource with several ManageRelatedRecords pages. I was hoping to just add a single page to the sub nav or, even more ideal, add a cluster into it but it doesn't look like that can be done. I know that I could rework my existing resource to a cluster but that simply isn't worth the effort at this point
4 replies
FFilament
Created by Prodex on 1/11/2024 in #❓┊help
Sub Navigation in ListView for Custom Page
Curious if this was ever solved...
4 replies
FFilament
Created by NolanN on 5/15/2024 in #❓┊help
Can I show records from 2 relationship in one relation manager?
I think I've got it after all. I created a definitionFields relationship like this:
public function definitionFields()
{
return $this->definition->fields();
}
public function definitionFields()
{
return $this->definition->fields();
}
5 replies
FFilament
Created by NolanN on 5/15/2024 in #❓┊help
Can I show records from 2 relationship in one relation manager?
I thought about just adding another relation manager and grouping them but the Source::definition() relationship is a belongsTo so trying to access the fields with a hasManyThrough is not working
5 replies
FFilament
Created by NolanN on 5/7/2024 in #❓┊help
Relating form tabs to specific model instances
I've got this close to working but I feel like there must be a better approach. I could just use a select instead of tabs but it isn't the UX I'd like to have. I'm curious what other ideas are out there
4 replies
FFilament
Created by NolanN on 5/2/2024 in #❓┊help
Database notifications not showing in panel
I had been thinking that it would be good to avoid sending a notification to each member of the team but I suppose that I would still need to have notifications on the user level in case they are creating exports or something similar
12 replies
FFilament
Created by NolanN on 5/2/2024 in #❓┊help
Database notifications not showing in panel
I'm thinking this could be a good PR for me to work on. I haven't tried to contribute before so I'm just curious if I could get some input on whether y'all think this would be a helpful addition for the framework before I work on it. I'm thinking users would get access to something like ->setNotifiableModel() or ->getNotifiableUsing().
12 replies
FFilament
Created by NolanN on 5/2/2024 in #❓┊help
Database notifications not showing in panel
Does Filament only show notifications that are directly associated to the user that is logged in? I was thinking that it would work for my Customer model which acts like a team
12 replies
FFilament
Created by NolanN on 5/2/2024 in #❓┊help
Database notifications not showing in panel
No description
12 replies
FFilament
Created by NolanN on 5/2/2024 in #❓┊help
Database notifications not showing in panel
I've added ->databaseNotifications() on my panel and I see the icon as expected. My Laravel notification has database specified as one of the channels and I've also added a toDatabase method:
public function via(object $notifiable): array
{
return ['database', 'mail'];
}

public function toDatabase(object $notifiable): array
{
return FilamentNotification::make()
->title('Saved successfully')
->getDatabaseMessage();
}
public function via(object $notifiable): array
{
return ['database', 'mail'];
}

public function toDatabase(object $notifiable): array
{
return FilamentNotification::make()
->title('Saved successfully')
->getDatabaseMessage();
}
12 replies
FFilament
Created by NolanN on 5/2/2024 in #❓┊help
Database notifications not showing in panel
I already had my QUEUE_CONNECTION set to sync
12 replies