<?php namespace App\Http\Dao; use App\Models\ChannelMaster; class ChannelMasterDao extends ChannelMaster { /** * 根据id获取渠道商记录 * * @param int $id * @return mixed */ public function getRecordById(int $id) { return self::where('id', $id)->first(); } }