| 12345678910111213141516171819202122232425262728 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- class AppointmentExam extends Model
- {
- protected $guarded = ['id'];
- protected function casts(): array
- {
- return [
- 'service_price' => 'decimal:2',
- ];
- }
- public function appointment(): BelongsTo
- {
- return $this->belongsTo(Appointment::class);
- }
- public function partnerAgreementService(): BelongsTo
- {
- return $this->belongsTo(PartnerAgreementService::class)->withTrashed();
- }
- }
|