Fixed chatgpt plugin

This commit is contained in:
Edward Yang 2023-06-19 18:56:25 +08:00
parent 6d274a74d9
commit f0058fa6b4
1 changed files with 3 additions and 2 deletions

View File

@ -15,15 +15,16 @@ class Bootstrap
{ {
public function boot() public function boot()
{ {
add_hook_filter('admin.sidebar.home.prefix', function ($data) { add_hook_filter('admin.sidebar.setting.prefix', function ($data) {
$data[] = 'openai'; $data[] = 'openai';
return $data; return $data;
}); });
add_hook_filter('admin.sidebar.home_routes', function ($data) { add_hook_filter('admin.sidebar.setting_routes', function ($data) {
$data[] = [ $data[] = [
'route' => 'openai.index', 'route' => 'openai.index',
'prefixes' => ['openai'],
'title' => 'ChatGPT', 'title' => 'ChatGPT',
]; ];