检查优惠券报错,报错信息说控制器调用 checkAvailable () 传入参数太少
报错信息:
exception: "Symfony\Component\Debug\Exception\FatalThrowableError"
file: "/home/vagrant/code/Laravel/app/Models/CouponCode.php"
line: 66
message: "Too few arguments to function App\Models\CouponCode::checkAvailable(), 1 passed in /home/vagrant/code/Laravel/app/Http/Controllers/CouponCodesController.php on line 19 and exactly 2 expected"
CouponCode.php源码:
CouponCodesController.php源码:
推荐文章: