diff --git a/src/Kris/LaravelFormBuilder/FormBuilderServiceProvider.php b/src/Kris/LaravelFormBuilder/FormBuilderServiceProvider.php index c269798..3474d13 100644 --- a/src/Kris/LaravelFormBuilder/FormBuilderServiceProvider.php +++ b/src/Kris/LaravelFormBuilder/FormBuilderServiceProvider.php @@ -105,7 +105,7 @@ public function boot() __DIR__ . '/../../config/config.php' => config_path('laravel-form-builder.php') ]); - $this->app->afterResolving(static::FORM_ABSTRACT, function (LaravelForm $form) { + $this->callAfterResolving(static::FORM_ABSTRACT, function (LaravelForm $form) { $form->macro('customLabel', function($name, $value, $options = [], $escapeHtml = true) use ($form) { if (isset($options['for']) && $for = $options['for']) { unset($options['for']);