0👍
✅
You’re using blade template so you must prepend the variable with @
<div id="coba">
<h3>@{{title}}</h3>
</div>
0👍
Try running ‘npm run watch’. It compiles your app.js from resources to public folder. Make sure your file names match up. (The one you compile in laravel mix (app.js) and the one you include in your script tag source attribute.):
<script src="{{asset('js/app.js')}}"><script>
Source:stackexchange.com