GameDao.php 287 Bytes
Newer Older
zazaname's avatar
zazaname committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?php

namespace App\Http\Dao;

use App\Models\Game;

class GameDao extends Game
{
    /**
     * 根据id获取游戏记录
     *
     * @param int $id
     * @return mixed
     */
    public function getRecordById(int $id)
    {
        return self::where('id',$id)->first();
    }
}