<?php namespace App\Models; use Slowlyo\OwlAdmin\Models\AdminUser; use Illuminate\Database\Eloquent\SoftDeletes; use Slowlyo\OwlAdmin\Models\BaseModel as Model; /** * 店铺认证记录 */ class ShopAuthRecord extends Model { use SoftDeletes; protected $table = 'shop_auth_records'; /** * @Author FelixYin * @description 认证记录所属店铺 */ public function shop() { return $this->belongsTo(ShopInfo::class, 'shop_id', 'id'); } /** * 获取审核人信息 */ public function auditorUser() { return $this->belongsTo(AdminUser::class, 'auditor', 'id'); } }