public function deactivate(Request $request, $name) { $extensionClasses = array_keys(ExtensionsFacade::all()); $activatedExtensions = activatedExtensions(); if (in_array($name, $extensionClasses) && in_array($name, $activatedExtensions)) { $activatedExtensions = array_diff($activatedExtensions, [$name]); setOption('activated_extensions', $activatedExtensions); } $redirect_url = adminUrl('extensions'); $rdr = $request->session()->pull(AppConfig::KEY_REDIRECT_URL, ''); if (!empty($rdr)) { $redirect_url = $rdr; } return redirect($redirect_url); }
protected function registerExtensions($is_auth = false) { ExtensionsFacade::register(); }
function isStaticExtension($extension) { return ExtensionsFacade::isStatic($extension); }