I'm using nova v4 since yesterday. After installing it, I played around with some simple possibilities regarding resources. Everything seemed to work fine. However, I can't seem to add cards or metrics to the homepage of the dashboard. The dashboard keeps displaying the help card, even when I alter the cards function in the NovaServiceProvider. For example:
protected function cards() { return [ new UserCount ]; }
Of course, I first created the metric using:
php artisan nova:value UserCount
I had to manually add the cards function, in the docs it seemed to be present by default.
It's possible that the issue is related to caching. Try running the following command to clear the cache:
php artisan cache:clear
If that doesn't work, try running the following command to clear the configuration cache:
php artisan config:clear
If neither of those solutions work, it's possible that there is an issue with your code. Double-check that the UserCount metric is defined correctly and that the cards function is returning an array of cards.