app->bindSingleton('components', function($app) { $file = $app->appPath('Services/FormBuilder/DefaultElements.php'); return new Components($app->load($file)); }, 'Components'); $this->app->bind('formBuilder', function($app) { return new FormBuilder($app); }, 'FormBuilder'); } /** * The provider booted method to be called after booting * @return void */ public function booted() { // ... } }