Set record in ViewRecord page
Hi, I'm creating a custom panel for a customer role. So I would like to limit the view/edit actions for this customer to only be able manage his/hers business.
So my idea is to create BusinessResource and then use the ViewBusiness to display the data using an infolist, so then I can add a new entry in the nav pointing to the view page directly.
My problem right now is that I cannot set the record in the view page.
So this is my
I've tried to set the record using this 3 methods but so far no luck:
But I'm still getting:
How could I achieve this? Or maybe some guidance in case there's an easier approach.
Thanks in advance
So my idea is to create BusinessResource and then use the ViewBusiness to display the data using an infolist, so then I can add a new entry in the nav pointing to the view page directly.
My problem right now is that I cannot set the record in the view page.
So this is my
Business::getPages():I've tried to set the record using this 3 methods but so far no luck:
But I'm still getting:
How could I achieve this? Or maybe some guidance in case there's an easier approach.
Thanks in advance