问题描述
我刚刚开始学习如何使用 Laravel
服务器,我想使用 Vue
.但是在安装 app.js
文件后,其中仅包含 require('/bootstrap');
,它是否不具有必需的组件和const app字段?/p>
我使用了 npm install
和 npm run watch
.我在做什么错了?
Laravel 6不再附带前端脚手架,他们将其运送到名为 Laravel用户界面,请安装并安装VueJS支架
composer需要laravel/uiPHP的工匠的UI VUE
如果需要身份验证视图,例如 login
和 register
php artisan ui vue --auth
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
这篇关于Laravel 6.0 app.js仅具有require('.bootstrap');?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!