// specific application requirements. if (class_exists('Platform\\Menus\\Models\\Menu')) { set_menu_order('admin', Config::get('platform.admin.menu')); set_menu_order('main', Config::get('platform.frontend.menu')); } }); /* |-------------------------------------------------------------------------- | Platform Hooks |-------------------------------------------------------------------------- | | Hooks for events of Platform itself. | */ Platform::booting(function ($platform) { // Before Platform and it's extensions have booted }); Platform::booted(function ($platform) { // When everything is setup and ready to roll }); Platform::ineligible(function ($platform) { // Whenever Platform cannot run (needs installing etc) }); /* |-------------------------------------------------------------------------- | Extension Hooks |-------------------------------------------------------------------------- | | Hooks for various stages of an Extension's lifecycle. You can access the | individual extension properties through $extension->getSlug(). |