install vue config app.js ..view ...web route..etc install router
-
composer require laravel/ui
-
php artisan ui vue
-
npm install & npm run dev
-
config routes/web.php Route::get('/{any}', function () { return view('welcome'); })->where('any','.*');
-
npm install vue-router
-
npm install --save vue@next && npm install --save-dev vue-loader@next
-
app.js require('./bootstrap'); import { createApp } from "vue"; import ExampleComponent from './components/ExampleComponent' const app = createApp({}); app.component('example-component',ExampleComponent).mount('#app');
-
welcome.blade.php