И
Size: a a a
И
P
P
И
P
P
VY
// ConstructorOrder
public function actualOrders()
{
return $this->belongsToMany(Order::class)
->where('user_id', Auth::id())
->where('date_end', '>', Carbon::now())
->where('pay_status', '>', 0);
}
// Your place
$constructor = ConstructorOrder::whereHas('actualOrders')->get();
BF
VY
class ConstructorOrder extends Model
{
public function orders()
{
return $this->belongsToMany(Order::class);
}
}
AP
AH
VP
VY
AP
VP
AP
VP
AP
VP
AP