0๐
โ
I solved it by myself. There was a mistake in web.php.
There is only one route needed and I forgot ->name('articles')
to register in routeslist.
Route::get('/articles', [\App\Http\Controllers\ArticleController::class, 'index'])->name('articles');
and the setup with imports looks like this:
<script setup>
import AppLayout from '@/Layouts/AppLayout.vue';
import JetButton from '@/Jetstream/Button.vue';
const props = defineProps({
articles: Object
})
</script>
Source:stackexchange.com