laravel new project-name --jet
composer require laravel/jetstream
php artisan jetstream:install inertia
php artisan jetstream:install inertia --teams
npm install && npm run dev
php artisan migrate
routes/web.php
Route::get('/test', function () {
return Inertia::render('Test'); // Test.vue を表示させる
});
resources/js/Pages/Test.vue
<template>
<h1>Hello world!</h1>
<inertia-link href="/" class="text-sm text-blue-700 underline">back to HOME</inertia-link>
</template>