23 lines
433 B
PHP
23 lines
433 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
|
||
|
|
class DmaShop extends BaseModel
|
||
|
|
{
|
||
|
|
use HasFactory;
|
||
|
|
|
||
|
|
public $fillable = ['shop_id', 'sku', 'pay_type','is_show', 'payment_id'];
|
||
|
|
|
||
|
|
public function payment()
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Payment::class, 'payment_id', 'id');
|
||
|
|
}
|
||
|
|
|
||
|
|
protected $casts = [
|
||
|
|
'sku' => 'array',
|
||
|
|
];
|
||
|
|
}
|