File: //home/royaltuning/public_html/public/backoffice.royaltuning.hu/app/Models/ProductSyncLog.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ProductSyncLog extends Model
{
protected $fillable = [
'central_product_id',
'shop_id',
'action',
'status',
'message',
'payload',
'response',
];
protected $casts = [
'payload' => 'array',
'response' => 'array',
];
public function centralProduct()
{
return $this->belongsTo(CentralProduct::class);
}
public function shop()
{
return $this->belongsTo(Shop::class);
}
}