每当我想使用 laravel/ui 包和 Bootstrap 脚手架创建带有身份验证路由的 Laravel 8 项目时,都会遇到以下图片:
这意味着 Bootstrap 尚未加载!因此,我需要重新运行 php artisan UI bootstrap
和 npm install && npm run dev
,以正确设置它们。
以下是我用于创建新的 Laravel 8 项目的步骤:
Install LARAVEL: laravel new [yourprojectname]
Install LARAVEL UI Package: composer require laravel/ui
Generate UI Bootstrap: php artisan ui bootstrap
Generate Auth Scaffolding: php artisan ui bootstrap --auth
Install NPM Dependencies: npm install && npm run dev
Running LARAVEL: php artisan serve
但是现在我想要把这件事情在我的脑海中弄清楚,这样我就不必再重新运行代码了。我的意思是,运行一个完整且准备好的项目需要哪些正确的逐步命令?
php artisan ui bootstrap
和php artisan ui bootstrap --auth
,像这样:php artisan ui bootstrap --auth
。 - Hooman/Applications/MAMP/htdocs/laravelproject/public/build/manifest.json
找到”。有什么建议吗? - Kamlesh