dillingham / nova-list-card

Add a variety of resource lists to Nova dashboards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(Includes One-Liner Solution) Support Custom Dashboards

marcusgabler opened this issue · comments

Change ResourceController::15 from $card = collect(Nova::$cards) to $card = collect(Nova::allAvailableDashboardCards($novaRequest)) in order to support custom dashboards.

Otherwise a "Trying to get property 'resource' of non-object" exception is thrown when Nova List Card is used in a custom dashboard. I will create a Pull Request in the future.