IncomingReport.php 550 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace App\Models;
  3. # use Illuminate\Database\Eloquent\Model;
  4. class IncomingReport extends Model
  5. {
  6. protected $table = 'incoming_report';
  7. public function hcp() {
  8. return $this->hasOne(Pro::class, 'id', 'hcp_pro_id');
  9. }
  10. public function patient(){
  11. return $this->hasOne(Client::class, 'id', 'client_id');
  12. }
  13. public function client(){
  14. return $this->hasOne(Client::class, 'id', 'client_id');
  15. }
  16. public function note() {
  17. return $this->hasOne(Note::class, 'id', 'note_id');
  18. }
  19. }