migration
This commit is contained in:
26
app/Models/Hotel.php
Normal file
26
app/Models/Hotel.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Hotel extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'address',
|
||||
];
|
||||
|
||||
public function roomTypes()
|
||||
{
|
||||
return $this->hasMany(RoomType::class);
|
||||
}
|
||||
|
||||
//public function bookings()
|
||||
//{
|
||||
// return $this->hasMany(Booking::class);
|
||||
//}
|
||||
}
|
||||
Reference in New Issue
Block a user