AgentRealAuthRecord.php 477 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\SoftDeletes;
  4. use Slowlyo\OwlAdmin\Models\BaseModel as Model;
  5. /**
  6. * 代理商实名认证记录
  7. */
  8. class AgentRealAuthRecord extends Model
  9. {
  10. use SoftDeletes;
  11. protected $table = 'agent_real_auth_records';
  12. /**
  13. * @Author FelixYin
  14. * @description 实名认证记录所属代理商
  15. */
  16. public function agent()
  17. {
  18. return $this->belongsTo(AgentInfo::class, 'agent_id', 'id');
  19. }
  20. }