/** * Returns the the count of all devices. * * @return mixed */ public function totalDevices() { return Poke::distinct()->count('mac'); }