(Includes One-Liner Solution) Support Custom Dashboards
marcusgabler opened this issue · comments
marcusgabler commented
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.