22 lines
380 B
PHP
22 lines
380 B
PHP
<?php
|
|
|
|
namespace App\Models\Real;
|
|
|
|
use App\Core\Model;
|
|
use App\Models\CompanyBase;
|
|
|
|
class Company extends CompanyBase
|
|
{
|
|
protected $table = 'real_companies';
|
|
|
|
public function cards()
|
|
{
|
|
return $this->hasMany(Card::class, 'real_company_id', 'id');
|
|
}
|
|
|
|
public function orders()
|
|
{
|
|
return $this->hasMany(Order::class, 'company_id', 'id');
|
|
}
|
|
}
|