You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
515 B
28 lines
515 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\Model;
|
|
|
|
class Cost extends Model
|
|
{
|
|
public const USER_TYPE = 'users';
|
|
|
|
public const FILE_TYPE = 'files';
|
|
|
|
public $perPage = 12;
|
|
|
|
protected $fillable = [
|
|
'business_id', 'type', 'month', 'amount', 'fee', 'duration','cost','tax', 'additional'
|
|
];
|
|
|
|
public $casts = [
|
|
'additional' => 'array',
|
|
'tax' => 'float',
|
|
];
|
|
|
|
public function business()
|
|
{
|
|
return $this->belongsTo(Business::class, 'business_id');
|
|
}
|
|
}
|