定制 based/sugar 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

based/sugar

Composer 安装命令:

composer require based/sugar

包简介

Minimal Laravel authentication scaffolding with Vue, Vite, Typescript and Tailwind.

README 文档

README

Sugar provides a supercharged starting point for Laravel applications. The package is built on top of the official Laravel Breeze, and includes:

  • Vite (instead of Webpack + Mix)
  • Vue 3 (modern SFC setup script syntax)
  • TypeScript
  • Tailwind CSS
  • Inertia.js

Installation

You can install the package via composer:

composer require based/sugar --dev

Then, publish the assets provided by Sugar, and compile them:

php artisan sugar:install

npm install
npm run dev

Be careful installing Sugar on existing projects, as it completely removes app.js

Inertia.js

The package comes with Inertia.js and includes components from Laravel Breeze, optimized for a better experience with Vue 3 and TypeScript.

<script setup lang="ts">
import { Button, Checkbox, Input, Label, ValidationErrors } from '@/Components/Breeze'
import { Head, Link, useForm } from '@inertiajs/inertia-vue3'
import useRoute from '@/Hooks/useRoute'

const route = useRoute()
const props = defineProps({
    canResetPassword: Boolean,
    status: String,
})

const form = useForm({
    email: '',
    password: '',
    remember: false
})

const submit = () => {
    form.post(route('login'), {
        onFinish: () => form.reset('password'),
    })
}
</script>

Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects. Read Why Vite? for more details.

The support is provided by Laravel Vite package.

TypeScript

TypeScript provides optional static typing, which lets you structure and validate your code at the compilation stage. It also brings the IDE autocompletion and validation support along with the code navigation feature.

Reimagined Breeze components utilize TypeScript. However, you're free to use the familiar syntax.

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 427
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 73
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 73
  • Watchers: 2
  • Forks: 3
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固