$feedId, 'platform_channel_id' => $platformChannelId, ], [ 'priority' => $priority, 'is_active' => $isActive, ] ); if ($route->wasRecentlyCreated && $route->is_active) { RouteActivated::dispatch($route->feed_id, $route->platform_channel_id); } return $route; } }