mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 23:42:32 +01:00
Updated count
This commit is contained in:
parent
e100203331
commit
877592f614
@ -194,9 +194,7 @@ class Server extends Model
|
|||||||
|
|
||||||
public static function serverYabsAmount(string $server_id): int
|
public static function serverYabsAmount(string $server_id): int
|
||||||
{//Returns amount of YABS a server has
|
{//Returns amount of YABS a server has
|
||||||
return DB::table('yabs')
|
return Yabs::where('server_id', $server_id)->count();
|
||||||
->where('server_id', '=', $server_id)
|
|
||||||
->get()->count();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function yabs()
|
public function yabs()
|
||||||
|
Loading…
Reference in New Issue
Block a user