clrghouz/app/Models/Filearea.php

29 lines
424 B
PHP
Raw Normal View History

2021-08-11 13:45:30 +00:00
<?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;
2022-11-01 11:24:36 +00:00
protected $fillable = [
'name',
];
2021-08-11 13:45:30 +00:00
/* RELATIONS */
public function addresses()
{
return $this->belongsToMany(Address::class);
}
public function domain()
{
return $this->belongsTo(Domain::class);
}
}