migration

This commit is contained in:
2026-01-07 22:18:43 +00:00
parent 8d681da7a1
commit 66cddf3fb2
29 changed files with 2250 additions and 638 deletions

26
app/Models/Hotel.php Normal file
View 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);
//}
}