Custom Page
I've added a custom page to my EventResource, specifically the
I implemented the HasInfolist
When I browse this userl
admin/events/1/take-attendance
, how can I get the Event data that has an ID of 1 and put it in my So that I can use it in viewing dataSolution:Jump to solution
static methods are for resources to be retrieved by the "page" class later. If you declare directly in the page class, it should be
public function infolist(Infolist $infolist): Infolist
6 Replies
I can't use inside infolist method
why static?
I just copied it from my main resource. What should be?
Solution
static methods are for resources to be retrieved by the "page" class later. If you declare directly in the page class, it should be
public function infolist(Infolist $infolist): Infolist
ohh nice! that's new to me. It works. thanks for the knowledge π
yepp... that also applies for other methods like form(), table(), etc