Extension::enabling(function (Extension $extension) { // Before an extension is enabled }); Extension::enabled(function (Extension $extension) { // After an extension is enabled }); Extension::disabling(function (Extension $extension) { // Before an extension is disabled }); Extension::disabled(function (Extension $extension) { // After an extension is disabled }); Extension::upgrading(function (Extension $extension) { // Before an extension is upgraded }); Extension::upgraded(function (Extension $extension) { // After an extension is upgraded }); /* |-------------------------------------------------------------------------- | Miscellaneous Hooks |-------------------------------------------------------------------------- | | Hooks for all other parts of Platform. | */ if (class_exists('Page')) { Page::rendering(function (Page $page) { // Page is rendering, return an array of additional data }); }