Created
February 29, 2020 15:24
-
-
Save abishekrsrikaanth/cb15990481a3e48ca9c6158676f7c1a8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use App\Models\User; | |
| namespace App\Nova\Metrics; | |
| class NewUsers extends Value | |
| { | |
| public $name = 'Customers'; | |
| public function calculate(NovaRequest $request) | |
| { | |
| return $this->count($request, User::customers()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment