Multiple resources using same model not working
Hello!
I've got a
As well as in the table function:
No matter what I try, change, or do, all three of my resources show the same, breadcrumbs also show
At this point I have:
Where
What am I doing wrong?
I've got a
User model, with an attribute usertype, values 1=Admin, 2=User, 3=Worker. This works, initially I had a single resource to manage these. I've been trying to split it into separate resources, i.e.: AdministratorResource, UserResource, and WorkerResource. However, no matter what I change or try all three of the resources end up showing the users. I've tried creating a separate Administrator model, I've added an override for the EloquentQuery:As well as in the table function:
No matter what I try, change, or do, all three of my resources show the same, breadcrumbs also show
Users > list , rather than the relevant info from the resource I'm trying to view.At this point I have:
Where
Administrator extends the User model, it was just an attempt to provide the resource with a different model.What am I doing wrong?