Laravel Breeze脚手架构建
laravel new example-app
cd example-app
npm install && npm run build
composer run dev
安装 Laravel Breeze
composer require laravel/breeze
使用 Breeze 安装 Inertia 脚手架Vue和React二选一
#Vue版本
php artisan breeze:install vue
#React版本
php artisan breeze:install react
安装前端
npm install
#监听实时更新,关闭终端就停止更新,需要按ctrl+c
npm run dev
#构建
npm run build
#Shadcn-vue 安装
npx shadcn-vue@latest add --all
npx shadcn-vue@latest init
npx shadcn-vue@latest add switch
文件√ You need to create a components.json file to add components. Proceed? ... yes
组件库√ Which component library would you like to use? » Reka UI
视觉风格√ Which visual style would you like to use? » Vega (Recommended)
Nova
Maia
Lyra
Mira
Luma
New York
Default
图标库√ Which icon library would you like to use? » Lucide
Tabler Icons
HugeIcons
Phosphor Icons
RemixIcon
字体√ Which font would you like to use? » Inter
Figtree
JetBrainsMono
Geist
Geist Mono
基础颜色√ Which color would you like to use as the base color? » Neutral
Gray
Zinc
Stone
Slate
目录\resources\js\Components\ui