This commit is contained in:
Edward Yang 2022-07-21 19:03:41 +08:00
parent db2ebdb8da
commit 71705ae9d6
3 changed files with 66 additions and 0 deletions

17
beike/Models/TaxClass.php Normal file
View File

@ -0,0 +1,17 @@
<?php
/**
* TaxClass.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author Edward Yang <yangjin@opencart.cn>
* @created 2022-07-21 18:39:28
* @modified 2022-07-21 18:39:28
*/
namespace Beike\Models;
class TaxClass extends Base
{
}

22
beike/Models/TaxRate.php Normal file
View File

@ -0,0 +1,22 @@
<?php
/**
* TaxRate.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author Edward Yang <yangjin@opencart.cn>
* @created 2022-07-21 18:39:38
* @modified 2022-07-21 18:39:38
*/
namespace Beike\Models;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class TaxRate extends Base
{
public function region(): BelongsTo
{
return $this->belongsTo(Region::class);
}
}

27
beike/Models/TaxRule.php Normal file
View File

@ -0,0 +1,27 @@
<?php
/**
* TaxRule.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author Edward Yang <yangjin@opencart.cn>
* @created 2022-07-21 18:39:48
* @modified 2022-07-21 18:39:48
*/
namespace Beike\Models;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class TaxRule extends Base
{
public function taxClass(): BelongsTo
{
return $this->belongsTo(TaxClass::class);
}
public function taxRate(): BelongsTo
{
return $this->belongsTo(TaxRate::class);
}
}