Skip to content

Commit ee4f8f1

Browse files
committedApr 29, 2024·
maybe fix undefined customLabel() in poor containers
1 parent 8ef6b44 commit ee4f8f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/Kris/LaravelFormBuilder/FormBuilderServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function boot()
105105
__DIR__ . '/../../config/config.php' => config_path('laravel-form-builder.php')
106106
]);
107107

108-
$this->app->afterResolving(static::FORM_ABSTRACT, function (LaravelForm $form) {
108+
$this->callAfterResolving(static::FORM_ABSTRACT, function (LaravelForm $form) {
109109
$form->macro('customLabel', function($name, $value, $options = [], $escapeHtml = true) use ($form) {
110110
if (isset($options['for']) && $for = $options['for']) {
111111
unset($options['for']);

0 commit comments

Comments
 (0)
Please sign in to comment.