/** * Suplement the base provider with a different version of the widget factory * * @return nil|null */ public function register() { parent::register(); $this->app->bind('arrilot.widget', function () { return new WidgetFactory(new LaravelApplicationWrapper()); }); $this->app->alias('arrilot.widget', 'Arrilot\\Widgets\\Factories\\WidgetFactory'); }