Skip to content

Commit

Permalink
Fix Twill form utils aliases on Laravel 7
Browse files Browse the repository at this point in the history
  • Loading branch information
ifox committed Jun 30, 2020
1 parent 9add546 commit c0018e5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/TwillServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

}

/**
Expand Down

0 comments on commit c0018e5

Please sign in to comment.