Fixed chatgpt plugin
This commit is contained in:
parent
6d274a74d9
commit
f0058fa6b4
|
|
@ -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',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue