Some Commenting And Mass Assignables Updated

This commit is contained in:
Devansh 2021-11-12 13:41:08 +05:30
parent b59f3875b3
commit 089a70ff9f
3 changed files with 24 additions and 13 deletions

View File

@ -3,29 +3,42 @@
namespace Webkul\Customer\Models;
use Illuminate\Database\Eloquent\Model;
use Webkul\Product\Models\ProductProxy;
use Webkul\Customer\Contracts\Wishlist as WishlistContract;
use Webkul\Product\Models\ProductProxy;
class Wishlist extends Model implements WishlistContract
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'wishlist';
/**
* The attributes that should be cast.
*
* @var array
*/
protected $casts = [
'additional' => 'array',
];
protected $fillable = [
'channel_id',
'product_id',
'customer_id',
'additional',
'moved_to_cart',
'shared',
'time_of_moving'
/**
* The attributes that aren't mass assignable.
*
* @var array
*/
protected $guarded = [
'id',
'created_at',
'updated_at',
];
/**
* The Product that belong to the wishlist.
* The product that belong to the wishlist.
*
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function product()
{

View File

@ -6,5 +6,4 @@ use Konekt\Concord\Proxies\ModelProxy;
class WishlistProxy extends ModelProxy
{
}
}

View File

@ -31,7 +31,6 @@
{!! view_render_event('bagisto.shop.customers.account.wishlist.list.before', ['wishlist' => $items]) !!}
<div class="wishlist-container">
@if ($items->count())
@foreach ($items as $item)
@php