Initial support for importing supplier costs
This commit is contained in:
18
app/Models/Cost/Broadband.php
Normal file
18
app/Models/Cost/Broadband.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Cost;
|
||||
|
||||
use App\Models\Service;
|
||||
use App\Models\Service\Broadband as BroadbandService;
|
||||
|
||||
class Broadband extends Type
|
||||
{
|
||||
protected $table = 'cost_broadband';
|
||||
|
||||
/* RELATIONS */
|
||||
|
||||
public function service()
|
||||
{
|
||||
return $this->hasOneThrough(Service::class,BroadbandService::class,'id','id','service_broadband_id','service_id');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user