InSeriousNeedOfHelp
InSeriousNeedOfHelp
FFilament
Created by InSeriousNeedOfHelp on 9/13/2023 in #❓┊help
How to edit an image that is already uploaded to let's say, s3
So i need to be able to edit an image that is already present in a gallery, basically, is there a way to lock down the FileUpload component in a way that it only works as an image editor? Also, how can I make the default value of the FileUpload the image i want to edit?
1 replies
FFilament
Created by InSeriousNeedOfHelp on 9/8/2023 in #❓┊help
Error while trying to adapt a v2 pattern to v3
We used this pattern to show multiple lists for the same resource in the navigation bar:
->navigation(function (NavigationBuilder $builder): NavigationBuilder {
return $builder
->groups([
NavigationGroup::make('Users')
->items([
...ListCustomers::getNavigationItems(),
...ListPartners::getNavigationItems(),
...ListStaff::getNavigationItems(),
]),
]);
})
->navigation(function (NavigationBuilder $builder): NavigationBuilder {
return $builder
->groups([
NavigationGroup::make('Users')
->items([
...ListCustomers::getNavigationItems(),
...ListPartners::getNavigationItems(),
...ListStaff::getNavigationItems(),
]),
]);
})
ListCustomers and all those other classes extend a UserList class, with different tables. When I try to use this, i get a "Route [filament.admin.pages.list-customers] not defined.". I tried registering the classes in the getPages function of the UserResource, but when i do so, thei create a route under filament.admin.resource.list-customers, not filament.admin.pages.list-customers. If I edit the function "getRouteName" inside the Page function, it works as I would assume. What am I doing wrong? Why are they registered under resources instead of pages? how can I register the routes for this lists under the pages route?
7 replies