minor fixes

This commit is contained in:
ludo
2024-02-23 08:35:41 +01:00
parent 3acb69abe4
commit c15a6e380f
47 changed files with 148 additions and 2458 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Models\Core;
use Illuminate\Database\Eloquent\Model;
class CartStorage extends Model
{
protected $table = 'cart_storage';
protected $fillable = [
'id', 'cart_data',
];
public function setCartDataAttribute($value)
{
$this->attributes['cart_data'] = serialize($value);
}
public function getCartDataAttribute($value)
{
return unserialize($value);
}
}