Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

realodix/urlhub

532 stars
1 code files
View realodix/urlhub on GitHub

app/Services/UserService.php

Open in GitHub
use App\Models\Url;
 
class UserService
{
//
public function guestCount()
{
$url = Url::select('ip', DB::raw('count(*) as total'))
->whereNull('user_id')->groupBy('ip')
->get();
 
return $url->count();
}
}

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.