<?php

namespace Modules\Mall\Traits;

use Illuminate\Database\Eloquent\Relations\HasMany;
use Modules\Mall\Models\Cart;

trait HasCart
{

    /**
     * Notes   : 用户的购物车
     * @Date   : 2021/4/19 10:28 上午
     * @Author : < Jason.C >
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function carts(): HasMany
    {
        return $this->hasMany(Cart::class);
    }

}