I just started learning how to work with a Laravel
server and I want to use Vue
. But after installing the app.js
file only has require('/bootstrap');
in it, shouldn't it have the required components and the const app field?
I used npm install
and npm run watch
. What am I doing wrong?
Laravel 6 doesn't ship with frontend scaffolding anymore, they shipped that to a new package called Laravel UI so install it and scaffold VueJS
composer require laravel/ui
php artisan ui vue
And if you need the authentication views like login
and register
php artisan ui vue --auth
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.