Recipels.php 883 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace App\Repositories\Models\TCM;
  3. use App\Repositories\Models\Model;
  4. use Prettus\Repository\Contracts\Transformable;
  5. use Prettus\Repository\Traits\TransformableTrait;
  6. /**
  7. * Class Patient.
  8. *
  9. * @package namespace App\Repositories\Models\TCM;
  10. */
  11. class Recipels extends Model implements Transformable
  12. {
  13. use TransformableTrait;
  14. protected $table = 'tcm_recipels';
  15. /**
  16. * The attributes that are mass assignable.
  17. *
  18. * @var array
  19. */
  20. protected $guarded = [];
  21. protected static function booted()
  22. {
  23. self::language();
  24. }
  25. public function medical_record()
  26. {
  27. return $this->belongsTo(MedicalRecord::class);
  28. }
  29. public function patient()
  30. {
  31. return $this->belongsTo(Patient::class);
  32. }
  33. public function prescription()
  34. {
  35. return $this->belongsTo(Prescription::class);
  36. }
  37. }