public function boot() { App::bind('form', function () { return new TwanooLib\FormPlus(); }); parent::boot(); }
/** * Register the application services. * * @return void */ public function register() { parent::register(); $this->app->bindShared('form', function ($app) { $form = new Macros($app['html'], $app['url'], $app['session.store']->getToken()); return $form->setSessionStore($app['session.store']); }); }
/** * Register the application services. * * @return void */ public function register() { // Macros must be loaded after the HTMLServiceProvider's // register method is called. Otherwise, csrf tokens // will not be generated parent::register(); // Load macros require base_path() . '/resources/macros/macros.php'; }
/** * Register the service provider. * * @return void */ public function register() { //Call register function of Illuminate\Html\HtmlServiceProvider parent::register(); //Re-register the New Form Builder $this->registerFormBuilder(); $this->app->alias('form', 'Elitexp\\AspNet\\FormBuilder'); //The Validator makes use of $app['form'] i.e. the FormBuilder $this->registerAspNetValidators($this->app); //Register make:aspnetmodel command $this->registerAspNetModelMakerCommand(); //Register make:aspnetvalidator $this->registerAspNetValidationMakerCommand(); }
/** * {@inheritdoc} */ public function register() { $this->package('idma/parsley-laravel'); parent::register(); }
/** * Register the application services. * * @return void */ public function register() { parent::register(); // load macros require base_path() . '/resources/macros/macros.php'; }
/** * Register the application services. * * @return void */ public function register() { parent::register(); //for EmailTemplate service provider, see AppServiceProvider $this->registerComposers(); }