public function boot()
    {
        $entries = AddonModel::query()
                             ->where('enabled', true)
                             ->get();

        /** @var AddonModel $entry */
        foreach ($entries as $entry) {
            if ($addon = $entry->resolveAddon()) {
                $addon->boot();
            }
        }

        PlatformBootedEvent::dispatch();
    }
public function boot()
    {
        $entries = AddonModel::query()
                             ->where('enabled', true)
                             ->get();

        /** @var AddonModel $entry */
        foreach ($entries as $entry) {
            if ($addon = $entry->resolveAddon()) {
                $addon->boot();
            }
        }

        PlatformBootedEvent::dispatch();
    }
public function boot ( ) { $ entries = AddonModel :: query ( ) -> where ( 'enabled' , true ) -> get ( ) ; /** @var AddonModel $entry */ foreach ( $ entries as $ entry ) { if ( $ addon = $ entry -> resolveAddon ( ) ) { $ addon -> boot ( ) ; } } PlatformBootedEvent :: dispatch ( ) ; }
Boot enabled addons
Boot enabled addons