You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
457 B
29 lines
457 B
|
5 years ago
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
class Bed extends SoftDeletesModel
|
||
|
|
{
|
||
|
|
protected $table = "bed";
|
||
|
|
|
||
|
|
public function area()
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Area::class);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function building()
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Building::class);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function project()
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Project::class);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function room()
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Room::class);
|
||
|
|
}
|
||
|
|
}
|