承接 ngb/ngb-starter-kit-vue 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

ngb/ngb-starter-kit-vue

Composer 安装命令:

composer create-project ngb/ngb-starter-kit-vue

包简介

Enterprise Laravel, Vue, Inertia, Tailwind, Fortify, and Spatie Teams starter kit.

README 文档

README

Enterprise starter kit for Laravel, Vue, Inertia, TypeScript, Tailwind CSS, Fortify, and Spatie Laravel Permission with Teams.

Stack

  • Laravel 13 and PHP 8.3+
  • Vue 3, Inertia.js, TypeScript, Vite
  • Tailwind CSS and compact enterprise UI components
  • Laravel Fortify authentication
  • Spatie Laravel Permission with Teams for organization-scoped access
  • Wayfinder route helpers

Included Modules

  • Dashboard
  • Site Administration
  • Authentication management: users, roles, permissions, role permissions
  • Organization hierarchy and organization units
  • Generic lookup maintenance
  • Site settings, branding, and maintenance controls
  • Optional SSO login and logout flow

First Setup

Create a new project directly from GitHub while the package is not yet published on Packagist:

composer create-project --repository='{"type":"vcs","url":"https://github.com/nelsonbalneg/ngb-starter-kit-vue"}' ngb/ngb-starter-kit-vue my-new-app v1.0.0
cd my-new-app

After the package is published on Packagist with a stable tag, use:

composer create-project ngb/ngb-starter-kit-vue my-new-app
cd my-new-app

Then install frontend dependencies and configure the app:

cp .env.example .env
php artisan key:generate
npm install
php artisan migrate:fresh --seed
npm run build

For local development:

composer run dev

Starter Seed Data

Seed data is configured in config/starter-kit.php and can be customized through .env.

Default users:

Role Email Password
super_admin super_admin@example.com password
super_admin admin@example.com password
user user@example.com password
employee employee@example.com password

Change STARTER_DEFAULT_PASSWORD before seeding for shared environments.

Organization Scope

Organizations are used as Spatie Teams. Default seed values:

  • Parent organization: starter
  • Default workspace: main
  • Sample workspace: branch

Permission checks must happen inside the active organization context:

app(\Spatie\Permission\PermissionRegistrar::class)
    ->setPermissionsTeamId($organizationId);

SSO

SSO is optional and disabled by default.

Important .env values:

SSO_ENABLED=false
SSO_BASE_URL=
SSO_USER_URL=
SSO_CLIENT_ID=
SSO_CLIENT_SECRET=
SSO_REDIRECT_URI="${APP_URL}/auth/callback"
SSO_LOGOUT_REDIRECT_URI="${APP_URL}/dashboard"
SSO_SCOPES="openid profile email"
SSO_STATE_VALIDATION=auto
SSO_DEFAULT_ROLE=employee
SSO_DEFAULT_ORGANIZATION_SLUG=main

When SSO_ENABLED=true, protected pages redirect unauthenticated users to SSO. Logout redirects to SSO_LOGOUT_REDIRECT_URI.

Never commit real SSO secrets.

Quality Checks

composer run lint:check
npm run format:check
npm run types:check
php artisan test

Some legacy generated UI files may still need lint cleanup. New work should pass formatting, TypeScript, and PHP style checks before handoff.

Development Rules

  • Do not hardcode roles, organizations, menus, or permission visibility.
  • Use permissions such as users.view, not role-name checks.
  • Keep controllers thin; put business logic in services.
  • Scope access by organization/team.
  • Use named routes and Wayfinder helpers.
  • Use confirmation dialogs for deletes.
  • Use Inter, compact spacing, accessible controls, and enterprise-grade UI patterns.

Using This As A Starter Kit

See STARTER_KIT_INSTRUCTIONS.md for copy-paste setup instructions.

See PACKAGIST_PUBLISHING.md for Packagist publishing steps.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固