Header Ads

How to define Matrics on Laravel Nova by register card

One of the defense matrics, you have attracted it to the resource and resource have already card method. 


    php artisan nova:value CountNewUsers



You will see the calculate and ranges function, ranges return the default count by days. 
I'm not changing the function, I only change interaction to my model. I want to count users so I need to use Model User on the app/User folder. and then after we modify ready, go to the User Resource and registration card. It will show you the card which you register. 

No comments:

Powered by Blogger.