ChannelMasterDao.php 318 Bytes EditWeb IDE 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\ChannelMaster; class ChannelMasterDao extends ChannelMaster { /** * 根据id获取渠道商记录 * * @param int $id * @return mixed */ public function getRecordById(int $id) { return self::where('id', $id)->first(); } }