CompanyClientDocument.php 407 B

123456789101112131415161718192021
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class CompanyClientDocument extends Model
  5. {
  6. protected $table = 'company_client_document';
  7. public function companyClient(){
  8. return $this->hasOne(CompanyClient::class, 'id', 'company_client_id');
  9. }
  10. public function systemFile(){
  11. return $this->hasOne(SystemFile::class, 'id', 'system_file_id');
  12. }
  13. }