svoydom/app/Models/Region.php
2023-05-17 09:57:20 +03:00

24 lines
418 B
PHP
Executable File

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Region extends Model
{
use HasFactory;
protected $fillable=['country_id'];
public function translations()
{
return $this->hasMany(RegionTranslation::class);
}
public function projects()
{
return $this->hasMany(Project::class);
}
}