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

19 lines
312 B
PHP
Executable File

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Area extends Model
{
use HasFactory;
protected $fillable=['room_type_id','name'];
public function flat()
{
return $this->hasOne(Flat::class);
}
}