Esempio n. 1
0
|--------------------------------------------------------------------------
| Extension Hooks
|--------------------------------------------------------------------------
|
| Hooks for various stages of an Extension's lifecycle. You can access the
| individual extension properties through $extension->getSlug().
|
*/
Extension::registering(function (Extension $extension) {
    // Before an extension is registered (happens for every extension)
});
Extension::registered(function (Extension $extension) {
    // After an extension is registered
});
Extension::booting(function (Extension $extension) {
    // Before an installed and enabled extension boots (after all are registered)
});
Extension::booted(function (Extension $extension) {
    // After an installed and enabled extension boots
});
Extension::installing(function (Extension $extension) {
    // Before an extension is installed
});
Extension::installed(function (Extension $extension) {
    // After an extension is installed
});
Extension::uninstalling(function (Extension $extension) {
    // Before an extension is uninstalled
});
Extension::uninstalled(function (Extension $extension) {
    // After an extension is uninstalled