28 lines
489 B
PHP
Executable File
28 lines
489 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class PaketFoto extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'paket_fotos';
|
|
protected $primaryKey = 'id_paket';
|
|
|
|
protected $fillable = [
|
|
'nama',
|
|
'deskripsi',
|
|
'harga',
|
|
'foto',
|
|
'durasi',
|
|
];
|
|
|
|
public function booking()
|
|
{
|
|
return $this->hasMany(BookingFoto::class, 'id_paket');
|
|
}
|
|
}
|