noble/app/Models/Area.php

19 lines
312 B
PHP
Raw Permalink Normal View History

2023-05-16 15:54:23 +03:00
<?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);
}
}