Update Doctor Resource
This commit is contained in:
31
app/Models/Price.php
Normal file
31
app/Models/Price.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Price extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'priceable',
|
||||
'price_group_id',
|
||||
'price_gross',
|
||||
'price_net',
|
||||
'has_tax',
|
||||
'discount_type',
|
||||
'discount_percentage',
|
||||
'discount_absolute',
|
||||
|
||||
'created_by',
|
||||
'updated_by',
|
||||
'deleted_by',
|
||||
];
|
||||
|
||||
public function priceable()
|
||||
{
|
||||
return $this->morphTo();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user