I followed the Laravel tutorial to install and use VueJs
I installed:
composer require laravel/ui
php artisan ui bootstrap
php artisan ui vue
npm install
I compiled all: (Compiled fine no errors)
npm run dev
Code:
resources/js/app.js
Vue.component('example-component', require('./components/ExampleComponent.vue').default);
resources/js/components/ExampleComponent.vue
<template>
example from laravel
</template>
resources/views/layout.blade.php
<head>
<script src="{{ asset('js/app.js')}}"></script>
</head>
<body>
<example-component></example-component>
</body>
Am I missing some configuration? I have no idea what else I need to do.
Page loads fine I can see the page and I can write html/css for visual, but I cant see the Vue component.