标签: php laravel eloquent
我的金额 $amount = auth()->user()->cooperative->amount->where('year', Date('y'))->first()->amount;,然后我尝试将其与缴款中的份额相乘,然后将产品与缴款中的实际金额进行比较 $contributions = auth()->user()->cooperative->contributions->where("amount", "<", '($amount * share)');
$amount = auth()->user()->cooperative->amount->where('year', Date('y'))->first()->amount;
$contributions = auth()->user()->cooperative->contributions->where("amount", "<", '($amount * share)');