From c0018e5c2701c4687e11d56de326f119dd7cf197 Mon Sep 17 00:00:00 2001 From: Quentin Renard Date: Mon, 22 Jun 2020 00:02:28 -0400 Subject: [PATCH] Fix Twill form utils aliases on Laravel 7 --- src/TwillServiceProvider.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/TwillServiceProvider.php b/src/TwillServiceProvider.php index 7679e88ac..548c51c98 100644 --- a/src/TwillServiceProvider.php +++ b/src/TwillServiceProvider.php @@ -395,6 +395,15 @@ private function extendBlade() $blade->component('twill::partials.form.utils._collapsed_fields', 'formCollapsedFields'); $blade->component('twill::partials.form.utils._connected_fields', 'formConnectedFields'); $blade->component('twill::partials.form.utils._inline_checkboxes', 'formInlineCheckboxes'); + + if (method_exists($blade, 'aliasComponent')) { + $blade->aliasComponent('twill::partials.form.utils._fieldset', 'formFieldset'); + $blade->aliasComponent('twill::partials.form.utils._columns', 'formColumns'); + $blade->aliasComponent('twill::partials.form.utils._collapsed_fields', 'formCollapsedFields'); + $blade->aliasComponent('twill::partials.form.utils._connected_fields', 'formConnectedFields'); + $blade->aliasComponent('twill::partials.form.utils._inline_checkboxes', 'formInlineCheckboxes'); + } + } /**