David | Fortune Validator
David | Fortune Validator
FFilament
Created by morty on 8/16/2024 in #❓┊help
Is there a more succinct way of retrieving a count of a resource inside a `ManageRelatedRecords`?
shame. Try that snippet above. I tried yours but the it was failing when I added a record. Try my code, seems okay for me
9 replies
FFilament
Created by morty on 8/16/2024 in #❓┊help
Is there a more succinct way of retrieving a count of a resource inside a `ManageRelatedRecords`?
I went with this:
public static function getNavigationBadge(): ?string
{
$count = static::getResource()::getModel()::find(request()->route('record'))?->notes->count();
if($count > 0){
return $count;
}
return null;
}
public static function getNavigationBadge(): ?string
{
$count = static::getResource()::getModel()::find(request()->route('record'))?->notes->count();
if($count > 0){
return $count;
}
return null;
}
9 replies
FFilament
Created by morty on 8/16/2024 in #❓┊help
Is there a more succinct way of retrieving a count of a resource inside a `ManageRelatedRecords`?
did you ever get a solution for this? I am struggling to gain access to the parent record as well
9 replies
FFilament
Created by David | Fortune Validator on 11/8/2024 in #❓┊help
Custom Pages By User
I think I always thought of Resources as list/edit/view only but it worked quite well with this use case also.
10 replies
FFilament
Created by David | Fortune Validator on 11/8/2024 in #❓┊help
Custom Pages By User
I used the resolve record so I could pass the user across each page which worked nicely
10 replies
FFilament
Created by David | Fortune Validator on 11/8/2024 in #❓┊help
Custom Pages By User
thanks for coming back to me. no its quite complex data / tables so it doesnt really fit the generic. I ended up goign with a resource to list the users and modify the query to show all users for admins and only single user for standard. then created custom pages for the resource and added the livewire components as you mentioned
10 replies
FFilament
Created by David | Fortune Validator on 11/8/2024 in #❓┊help
Custom Pages By User
Should I create another resource , maybe with maybe some custom pages ? And resolve the record. Then do custom logic for the report ?
10 replies
FFilament
Created by David | Fortune Validator on 10/11/2024 in #❓┊help
SUB_NAVIGATION Hook
https://github.com/filamentphp/filament/pull/14566 Hopefully Ive done it correctly. My first PR ever
11 replies
FFilament
Created by David | Fortune Validator on 10/11/2024 in #❓┊help
SUB_NAVIGATION Hook
I've found the file. Just need to work out how to create a hook
11 replies
FFilament
Created by David | Fortune Validator on 10/11/2024 in #❓┊help
SUB_NAVIGATION Hook
which a hook would be perfect for
11 replies
FFilament
Created by David | Fortune Validator on 10/11/2024 in #❓┊help
SUB_NAVIGATION Hook
I did go down this route to add some nav links but I would like to add a whole livewire component underneath the sub nav
11 replies
FFilament
Created by David | Fortune Validator on 10/11/2024 in #❓┊help
SUB_NAVIGATION Hook
anyone have any ideas?
11 replies
FFilament
Created by David | Fortune Validator on 10/11/2024 in #❓┊help
SUB_NAVIGATION Hook
For some context, I want to add some extra links to the sub navigation on particular resources which will go to other pages on the app ( not linked to the same resource ). So either I need a hook or a way to add a custom URL link to the sub navigation already in place
11 replies
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
deploying laravel filament app on local machine issues
Remove xamp. Maybe there is a port conflict
47 replies
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
deploying laravel filament app on local machine issues
47 replies
FFilament
Created by David | Fortune Validator on 9/10/2024 in #❓┊help
Update Edit Modal on Table
Thank you. I’ll take a read. This is outside of panels setup though so not sure relationship manager will work for me.
26 replies
FFilament
Created by David | Fortune Validator on 9/10/2024 in #❓┊help
Update Edit Modal on Table
It’s all in livewire / filament classes. Which is why I’m struggling to find a way to listen for an event.
26 replies
FFilament
Created by David | Fortune Validator on 9/10/2024 in #❓┊help
Update Edit Modal on Table
Thank you for sharing your ideas 🙏
26 replies
FFilament
Created by David | Fortune Validator on 9/10/2024 in #❓┊help
Update Edit Modal on Table
I’ll see if I can get something simply out this weekend, thank you. The model you see open is an EditAction on the table behind the modal. The table you see visibly on the modal on the screenshot is also firing an editaction model where I make some changes and hit save. So in short: two editaction modals are in play.
26 replies
FFilament
Created by David | Fortune Validator on 9/10/2024 in #❓┊help
Update Edit Modal on Table
This is a snippet of the code. That livewire class holds the table which I’m updating. I then need the buying price under it to update
26 replies