1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 15:33:44 +01:00

Updated count

This commit is contained in:
cp6 2023-08-18 19:31:21 +10:00
parent e100203331
commit 877592f614

View File

@ -194,9 +194,7 @@ class Server extends Model
public static function serverYabsAmount(string $server_id): int
{//Returns amount of YABS a server has
return DB::table('yabs')
->where('server_id', '=', $server_id)
->get()->count();
return Yabs::where('server_id', $server_id)->count();
}
public function yabs()