Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save abishekrsrikaanth/cb15990481a3e48ca9c6158676f7c1a8 to your computer and use it in GitHub Desktop.

Select an option

Save abishekrsrikaanth/cb15990481a3e48ca9c6158676f7c1a8 to your computer and use it in GitHub Desktop.
<?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