Laravel 6.0 app.js仅具有require('.bootstrap');? [英] Laravel 6.0 app.js only has require('.bootstrap');?
问题描述
我刚刚开始学习如何使用 Laravel
服务器,我想使用 Vue
.但是在安装 app.js
文件后,其中仅包含 require('/bootstrap');
,它是否不具有必需的组件和const app字段?/p>
我使用了 npm install
和 npm run watch
.我在做什么错了?
Laravel 6不再附带前端脚手架,他们将其运送到名为 如果需要身份验证视图,例如 I just started learning how to work with a I used 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 And if you need the authentication views like 这篇关于Laravel 6.0 app.js仅具有require('.bootstrap');?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! composer需要laravel/uiPHP的工匠的UI VUE
login
和 register
<代码> php artisan ui vue --auth
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?npm install
and npm run watch
. What am I doing wrong?composer require laravel/ui
php artisan ui vue
login
and register
php artisan ui vue --auth