Skip to content

Commit

Permalink
Using getBag() and style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cheyner committed Sep 5, 2024
1 parent c4e5cb2 commit 5ce0340
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Elements/Summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Summary extends Element implements NonInput

protected $view_data = [
'verbose' => false,
'error_bag' => null
'error_bag' => null,
];

public function __construct(Aire $aire, Form $form = null)
Expand Down
2 changes: 1 addition & 1 deletion views/summary.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php /** @var \Illuminate\Support\ViewErrorBag $errors */ ?>
@php
if (isset($error_bag) && isset($errors)) {
$errors = $errors->{$error_bag};
$errors = $errors->getBag($error_bag);
}
@endphp

Expand Down

0 comments on commit 5ce0340

Please sign in to comment.