CompanyStatistics.php 556 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2019/4/25
  6. * Time: 10:16
  7. */
  8. namespace App\Transfer;
  9. use Illuminate\Database\Eloquent\Model;
  10. class CompanyStatistics extends Model
  11. {
  12. protected $connection = "transfer_center";
  13. protected $table = "qs_company_statistics";
  14. protected $guarded = [];
  15. public function companys()
  16. {
  17. return $this->belongsTo(CompanyProfile::class, 'uid', 'uid');
  18. }
  19. public function companyProfile()
  20. {
  21. return $this->belongsTo(CompanyProfile::class, 'comid');
  22. }
  23. }