ProClientWork.php 356 B

1234567891011121314151617181920
  1. <?php
  2. namespace App\Models;
  3. # use Illuminate\Database\Eloquent\Model;
  4. class ProClientWork extends Model
  5. {
  6. protected $table = 'pro_client_work';
  7. public function client()
  8. {
  9. return $this->hasOne(Client::class, 'id', 'client_id');
  10. }
  11. public function pro()
  12. {
  13. return $this->hasOne(Pro::class, 'id', 'pro_id');
  14. }
  15. }