快速开始 / 安装
安装
选择您的框架以查看后端安装说明。
1. 安装包
composer require escalated-dev/escalated-laravel
2. 运行安装程序
发布迁移文件、配置并设置数据库表。
php artisan escalated:install
php artisan migrate
3. 发布配置(可选)
php artisan vendor:publish --tag=escalated-config
注意: 路由通过服务提供者自动注册。无需在
routes/web.php中添加任何内容。
1. 添加gem
$ bundle add escalated
2. 运行安装程序
$ rails generate escalated:install
$ rails db:migrate
3. 挂载引擎
将引擎添加到config/routes.rb:
Rails.application.routes.draw do
mount Escalated::Engine, at: "/support"
end
1. 安装包
$ pip install escalated-django
2. 添加到已安装应用
在settings.py中:
INSTALLED_APPS = [
...
"escalated",
]
3. 运行迁移并添加URL
$ python manage.py migrate
在urls.py中:
from django.urls import path, include
urlpatterns = [
...
path("support/", include("escalated.urls")),
]
1. 安装包
npm install @escalated-dev/escalated-adonis
2. 配置包
node ace configure @escalated-dev/escalated-adonis
3. 运行迁移
node ace migration:run
注意: configure命令会自动发布
config/escalated.ts、注册提供者并复制迁移文件。
1. 安装包
composer require escalated-dev/escalated-laravel escalated-dev/escalated-filament
2. 运行Escalated安装程序
php artisan escalated:install
php artisan migrate
3. 注册Filament插件
在Filament面板提供者中:
use Escalated\Filament\EscalatedFilamentPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugin(
EscalatedFilamentPlugin::make()
->navigationGroup('Support')
->agentGate('escalated-agent')
->adminGate('escalated-admin')
);
}
注意: Filament使用原生Livewire + Blade组件——不需要Inertia.js或Vue。UI遵循Filament的设计系统。核心功能与Inertia前端相同,但某些交互可能略有不同。
1. 安装插件
$ wp plugin install escalated --activate
2. 配置设置
在wp-admin中导航到Escalated -> Settings来配置部门、SLA策略、升级规则和邮件渠道。
3. 添加短代码
在任意页面放置短代码为客户提供支持门户:
[escalated_tickets] // Ticket list
[escalated_create_ticket] // New ticket form
[escalated_view_ticket] // Ticket detail
注意: WordPress插件是自包含的——不使用Inertia.js。所有UI通过原生WordPress管理界面和基于短代码的前端模板渲染。
1. Add the dependency
# pubspec.yaml
dependencies:
escalated:
git:
url: https://github.com/escalated-dev/escalated-flutter.git
2. Install packages
$ flutter pub get
3. Wrap your app
import 'package:escalated/escalated.dart';
void main() {
runApp(
EscalatedPlugin(
config: EscalatedConfig(
apiBaseUrl: 'https://yourapp.com/support/api/v1',
),
child: MyApp(),
),
);
}
Note: The Flutter package is a customer-facing UI library. Agent and admin interfaces are handled through the web application.
1. Install the package
$ npm install @escalated-dev/escalated-react-native
2. Install peer dependencies
$ npx expo install @react-navigation/native @react-navigation/bottom-tabs @react-navigation/native-stack react-native-screens react-native-safe-area-context
3. Wrap your app
import { EscalatedProvider } from '@escalated-dev/escalated-react-native';
export default function App() {
return (
<EscalatedProvider config={{ apiBaseUrl: 'https://yourapp.com/support/api/v1' }}>
<NavigationContainer>
{/* Your app navigation */}
</NavigationContainer>
</EscalatedProvider>
);
}
Note: The React Native package is a customer-facing UI library. Agent and admin interfaces are handled through the web application.