dispatch(new appendRequestURL($request, $url, $newParameters)); } } if (!function_exists('is_module_installed')) { function is_module_installed($moduleNamespace, $checkEnabled = true) { return dispatch_now(new CheckModuleInstalled($moduleNamespace, $checkEnabled)); } } if (!function_exists('get_buyables')) { function get_buyables() { return dispatch_now(new GetBuyables()); } } if (!function_exists('auth_id_if_null')) { function auth_id_if_null($userId) { return $userId ?: auth()->id(); } }