vmailadmin/app/DomainUser.php

17 lines
338 B
PHP
Raw Permalink Normal View History

2020-05-23 15:20:01 +02:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\Pivot;
class DomainUser extends Pivot
{
//
public function domain()
{
// return $this->belongsTo('App\Post', 'foreign_key', 'other_key');
return $this->belongsTo('App\Domain','domain','domain');
}
}