秒杀详情页报错?
Product.php
public function seckill()
{
return $this->hasOne(SeckillProduct::class);
}
SeckillProduct.php
public function getIsBeforeStartAttribute()
{
return Carbon::now()->lt($this->start_at);
}
检查了几遍了,不知道为什么造成这样错误
推荐文章: