Vitor
Custom page before list resource
Thx for the reply, Dennis.
It shouldn't be in the navigation. When clicking on the Products menu, I want to navigate to a custom page where a factory can be selected. After selecting a factory, I want to list all products that match the selected factory.
13 replies
SpatieMediaLibraryFileUpload in Custom Page
SOLVED:
Inside the
SpatieMediaLibraryFileUpload.php
, first we need to load('media') record and after getMedia.
To not change the package files directly, we can add the load in the mount() custom page method:
4 replies
Custom resources directories
My setup is basically:
<BASE_PATH>/modules/<MODULE_NAME>
Resources are in: <BASE_PATH>/modules/<MODULE>/filament/<MODULE>Resource
Pages are in: <BASE_PATH>/modules/<MODULE>/filament/<MODULE>Resource/Pages
I tried to do this:
->discoverResources(in: base_path('modules'), for: 'System\\Factory\\filament\\FactoryResource')
->discoverPages(in: base_path('modules'), for: 'System\\Factory\\filament\\FactoryResource\\Pages')
But nothing happens39 replies
Custom resources directories
So if I have for example:
<base_path>/modules/User;
<base_path>/modules/Factory;
<base_path>/modules/Car;
Should I use:
$panel->discoverResources("<base_path>/modules/User/resources", "namespace")
$panel->discoverResources("<base_path>/modules/Factory/resources", "namespace")
$panel->discoverResources("<base_path>/modules/User/resources", "namespace")
This?
39 replies