添加更新插件action hook

This commit is contained in:
Edward Yang 2023-01-05 17:37:54 +08:00
parent 102ffb4fa4
commit 726b607a88
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@
namespace Beike\Admin\Http\Controllers;
use Beike\Repositories\MenuRepo;
use Exception;
use Beike\Plugin\Manager;
use Illuminate\Http\Request;
@ -104,6 +105,7 @@ class PluginController extends Controller
}
SettingRepo::update('plugin', $code, $fields);
hook_action('after_edit_plugin', ['plugin_code' => $code, 'fields' => $fields]);
return redirect($this->getRedirect())->with('success', trans('common.updated_success'));
}