Well, my problem is that I can't set up more than one Vue component in Laravel. When I set one, one of them then loads, but two at the same time do not load.
app.js:
require('./bootstrap');
import { createApp } from 'vue'
import Home from './components/Home.vue';
import Offers from './components/Offers.vue';
const app=createApp({});
app.component('home',Home);
app.component('offers',Offers);
app.mount('#app');
welcome.blade.php
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap" rel="stylesheet">
</head>
<body class="antialiased">
<div id="app">
<Home />
<Offers />
</div>
<script src="{{ mix('js/app.js') }}"></script>
</body>
</html>
Each vue component looks like this:
<template>
<div>
<p>test</p>
</div>
</template>