I have conditional data and it ignores that conditions while returning data:
Works fine
$orders = Order::where(\'user_id\', $user->id)-