12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace App\Repositories\Models\TCM;
- use App\Repositories\Models\Model;
- use Prettus\Repository\Contracts\Transformable;
- use Prettus\Repository\Traits\TransformableTrait;
- /**
- * Class Patient.
- *
- * @package namespace App\Repositories\Models\TCM;
- */
- class Recipels extends Model implements Transformable
- {
- use TransformableTrait;
- protected $table = 'tcm_recipels';
- /**
- * The attributes that are mass assignable.
- *
- * @var array
- */
- protected $guarded = [];
- protected static function booted()
- {
- self::language();
- }
- public function medical_record()
- {
- return $this->belongsTo(MedicalRecord::class);
- }
- public function patient()
- {
- return $this->belongsTo(Patient::class);
- }
- public function prescription()
- {
- return $this->belongsTo(Prescription::class);
- }
- }
|