ibnu-ja/jetify

Laravel Jetstream Inertia.js + Vite + Vuetify

dev-master 2022-02-21 14:29 UTC

This package is auto-updated.

Last update: 2024-09-20 06:52:07 UTC


README

简介

此包旨在使用 Vuetify 的力量来利用材料设计的优势,在 Laravel Jetstream 的启动套件中使用 Inertia 框架,并用 Laravel Vite 预设替换 Laravel Mix。灵感来源于 Jet-Vuetify

安装

仅适用于全新的 Laravel 8/9 安装

首先,使用 composer 安装此包

composer require ibnu-ja/jetify

安装后,运行 artisan 命令

php artisan jetify:install

或与团队一起

php artisan jetify:install --teams

完成安装

安装 Node 依赖项并进行数据库迁移

npm install
# or with yarn
yarn install
php artisan migrate

发布 Laravel-Vite 配置

php artisan vendor:publish --tag=vite-config

然后,运行应用服务

npm run dev
# or with yarn
yarn dev