have_order = BooleanCaster::cast($raw_order['Receipt']); $application->order_info = null; if ($application->have_order) { $application->order_info = (string)$raw_order['OrderInfo']; } return $application->save(true, ['have_order', 'order_info']); } return false; } }