Skip to content

Commit

Permalink
maybe fix undefined customLabel() in poor containers
Browse files Browse the repository at this point in the history
  • Loading branch information
rudiedirkx committed Apr 29, 2024
1 parent 8ef6b44 commit ee4f8f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kris/LaravelFormBuilder/FormBuilderServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit ee4f8f1

Please sign in to comment.