resource in multiple panels
Hi, I am trying to reuse same model resource in different panels and display a slight different array of pages according to user.
In the resource getPages() the filament currentpanel and auth()->user() are not available. what am i doing wrong?
Edit: I have kept the resources seperate and the pages common. Then in the pages, i am passing the correct resource after checking auth. this seems to work. what would be the optimum way? It would be less code if filament() would work inside getPages()
In the resource getPages() the filament currentpanel and auth()->user() are not available. what am i doing wrong?
Edit: I have kept the resources seperate and the pages common. Then in the pages, i am passing the correct resource after checking auth. this seems to work. what would be the optimum way? It would be less code if filament() would work inside getPages()