variable checking
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
<x-ui.gallery
|
||||
label="Gallery"
|
||||
name="gallery"
|
||||
value="{{ $post ? \App\Helpers::arrayToString($post->files('gallery')->pluck('name')->toArray()) : '' }}"
|
||||
value="{{ isset($post) ? \App\Helpers::arrayToString($post->files('gallery')->pluck('name')->toArray()) : '' }}"
|
||||
editor="true"
|
||||
></x-ui.gallery>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user