How to use PostResource on both panel
i create 2 panel for separate admin panel and user panel with each has a different folder path (admin and user)
if i want to create a post resource where should i put the resource so i can access it on both pages, thanks.
9 Replies
You can create a folder like app/Filament/SharedResources
and use
discoverResources()
im already have a default
->discoverResources(in: app_path('Filament/Teacher/Resources'), for: 'App\\Filament\\Teacher\\Resources')
can i cannot add inside that, it shown an error, Cannot use positional argument after named argument.
Did you do this?
i did , those are the files and code, what did i missed?
namespace App\Filament\SharedResources;
?
namespace App\Filament\SharedResources\PostResource\Pages;
?just solved it, i'll modify the folder structure,
shared/resources
thanks bro, you safe my day ππ»
hi , is it not possible to only modify form or table in extended ressource ?