You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
483 B
PHP
27 lines
483 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class CustomerCart extends Model
|
|
{
|
|
protected $fillable = [
|
|
'customer_id',
|
|
'sale_id',
|
|
'entity_type',
|
|
'entity_id',
|
|
'price',
|
|
'quantity',
|
|
'additional_info_json',
|
|
];
|
|
|
|
public function voucher()
|
|
{
|
|
return $this->belongsTo(Voucher::class, 'entity_id');
|
|
}
|
|
|
|
public function locationProfile()
|
|
{
|
|
return $this->belongsTo(LocationProfile::class, 'entity_id');
|
|
}
|
|
}
|