25 lines
384 B
PHP
25 lines
384 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||
|
|
||
|
use App\Traits\ScopeActive;
|
||
|
|
||
|
class Filearea extends Model
|
||
|
{
|
||
|
use SoftDeletes,ScopeActive;
|
||
|
|
||
|
/* RELATIONS */
|
||
|
|
||
|
public function addresses()
|
||
|
{
|
||
|
return $this->belongsToMany(Address::class);
|
||
|
}
|
||
|
|
||
|
public function domain()
|
||
|
{
|
||
|
return $this->belongsTo(Domain::class);
|
||
|
}
|
||
|
}
|