定制 yasiramin380/foundation-kit 二次开发

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

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

yasiramin380/foundation-kit

Composer 安装命令:

composer create-project yasiramin380/foundation-kit

包简介

The skeleton application for the Laravel framework.

README 文档

README

A production-ready Laravel 12 + React 19 starter with Inertia.js, TypeScript, and a custom module system. Built for scalable, modular web applications.

Features

  • Laravel 12 (PHP 8.2+) with React 19 and TypeScript
  • Inertia.js (React) for a single-page app experience without building an API
  • Custom module system — backend in app/Modules/, frontend in resources/js/modules/ (Dashboard, Privileges, AppSetting included)
  • Authentication — Laravel Fortify (registration, login, 2FA, email verification, password reset)
  • Roles & permissions — Spatie Laravel Permission (backend + frontend hooks)
  • Document Management — Morphable attachment system (AppAttachment), HasAttachments trait, and custom React file uploaders
  • UI — shadcn/ui (Radix) + Tailwind CSS 4
  • Type-safe routes — Laravel Wayfinder (generated route helpers for the frontend)
  • Real-time — Laravel Reverb (WebSockets)
  • Developer tools — Laravel Telescope, Pest PHP, ESLint, Prettier, Laravel Pint
  • App settings — Backend-managed logo, site name, and general settings (used on welcome page and app shell)

Prerequisites

  • PHP 8.2+
  • Composer
  • Node.js 18+ (LTS recommended)
  • SQLite, MySQL, or PostgreSQL

Installation

To get started with the Foundation Kit, ensure you have the Laravel Installer configured on your system first.

1. Prerequisite: Laravel Installer

If you haven't installed the Laravel CLI globally yet, run:

composer global require laravel/installer

2. Create New Project

Use the --using flag to scaffold your application with this specific foundation kit:

laravel new my-app --using=yasiramin380/foundation-kit

Development

# Run Laravel, Reverb, queue worker, and Vite together
composer dev

This starts:

  • Laravel dev server
  • Laravel Reverb (WebSockets)
  • Queue worker
  • Vite dev server

For SSR (optional):

npm run build:ssr
composer dev:ssr

Project structure (overview)

PathDescription
app/Modules/Backend modules (Controllers, Models, Routes, migrations)
resources/js/modules/Frontend module pages and components (React)
resources/js/pages/Global Inertia pages (welcome, settings)
resources/js/components/Shared React components and shadcn/ui
resources/js/routes/Wayfinder-generated route definitions (do not edit by hand)

Useful commands

CommandDescription
php artisan make:module ModuleNameCreate a new module (backend + frontend scaffold)
php artisan wayfinder:generateRegenerate route/action types for the frontend
php artisan app:initBootstrap: .env, key, clear cache/logs, storage link, wayfinder
php artisan app:init --db --seedSame as above + fresh migrate + seed
composer testRun Pest tests and Pint
npm run lintESLint
npm run formatPrettier (resources/)
npm run typesTypeScript check

Documentation

Full documentation (architecture, modules, auth, permissions, helpers, UI, etc.) is available in the app at /documentations (Blade-based doc page).

Tech stack summary

Backend: PHP 8.2, Laravel 12, Fortify, Sanctum, Reverb, Spatie (permission, activity log, backup), Laravel Telescope, Wayfinder
Frontend: React 19, TypeScript, Inertia.js, Vite 7, Tailwind CSS 4, shadcn/ui (Radix), Lucide icons, TanStack Table
Tooling: Pest, Pint, ESLint, Prettier

Child Project Update

git remote add upstream https://gitlab.com/yasiramin380/foundation-kit
git fetch upstream
git merge upstream/main --allow-unrelated-histories

License

MIT.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固