myvideogamelist.com/app/Helpers/Game.php
Jimmy Brancaccio b39ecf1638 Initial Commit
The initial public commit of MVGL website code.
2024-01-14 13:51:43 -06:00

16 lines
266 B
PHP

<?php
use App\Models\Game;
use Illuminate\Support\Facades\DB;
if (!function_exists('fetchGamesCount')) {
/**
* Fetch and return a count of games.
*
* @return int
*/
function fetchGamesCount()
{
return Game::count();
}
}