File manager - Edit - /home/autoph/public_html/projects/aha-api/app/Models/ServiceSlotTimeDtl.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use OwenIt\Auditing\Contracts\Auditable; use OwenIt\Auditing\Auditable as AuditableTrait; use App\Models\ServiceSlotTimeHdr; use App\Models\ServiceType; class ServiceSlotTimeDtl extends Model implements Auditable { use HasFactory, AuditableTrait; protected $table = 'service_slot_time_dtl'; protected $fillable = [ 'hdr_id', 'slot_no', 'service_type_id', 'enabled', 'booked', ]; /** * The attributes that should be cast. * * @var array<string, string> */ protected $casts = [ 'created_at' => 'datetime', 'updated_at' => 'datetime', ]; public function service_slot_time_hdr() { return $this->belongsTo(ServiceSlotTimeHdr::class, 'id', 'hdr_id'); } public function service_type() { return $this->belongsTo(ServiceType::class, 'service_type_id', 'id'); } public function booking() { return $this->hasOne(ServiceBooking::class, 'slot_dtl_id', 'id'); } }
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings