public static function incrementFor(Viewable $viewable): int
{
$user = user();
- if (is_null($user) || $user->isDefault()) {
+ if ($user->isGuest()) {
return 0;
}
return $view->views;
}
-
- /**
- * Clear all views from the system.
- */
- public static function clearAll()
- {
- static::query()->truncate();
- }
}