HandoutClient.php 358 B

12345678910111213141516171819
  1. <?php
  2. namespace App\Models;
  3. # use Illuminate\Database\Eloquent\Model;
  4. class HandoutClient extends Model
  5. {
  6. protected $table = 'handout_client';
  7. public function client(){
  8. return $this->hasOne(Client::class, 'id', 'client_id');
  9. }
  10. public function handout(){
  11. return $this->hasOne(Handout::class, 'id', 'handout_id');
  12. }
  13. }