[Vuejs]-Image works in a vue component and doesn't in another

0πŸ‘

βœ…

In your code, enclose your @json(image) directive with double quotes:

@extends('layouts.app')

@section('content')
<div id="app">
    <show-image :image="{{ json_encode($image) }}"></show-image>
</div>
@endsection

Leave a comment