File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11@if (Session:: has (' toastr' ) )
22 @php
3- $toastr = Session:: get (' toastr' );
3+ $toastr = Session:: pull (' toastr' );
44 $type = \Illuminate \Support \Arr:: get ($toastr -> get (' type' ), 0 , ' success' );
55 $message = \Illuminate \Support \Arr:: get ($toastr -> get (' message' ), 0 , ' ' );
66 $options = json_encode ($toastr -> get (' options' , []));
Original file line number Diff line number Diff line change @@ -56,7 +56,9 @@ protected function buildRelatedForms()
5656 if (isset ($ data ['pivot ' ])) {
5757 $ data = array_merge ($ data , $ data ['pivot ' ]);
5858 }
59- $ forms [$ key ] = $ this ->buildNestedForm ($ this ->column , $ this ->builder , $ key )->fill ($ data );
59+ if (is_array ($ data )) {
60+ $ forms [$ key ] = $ this ->buildNestedForm ($ this ->column , $ this ->builder , $ key )->fill ($ data );
61+ }
6062 }
6163 }
6264
You can’t perform that action at this time.
0 commit comments