channlabs/starter-kit 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

channlabs/starter-kit

最新稳定版本:v1.0.2

Composer 安装命令:

composer create-project channlabs/starter-kit

包简介

Laravel Inertia React Starter Kit by Chann Labs.

README 文档

README

⚡ Chann Labs Starter Kit

Premium Laravel + React Starter Kit for Modern Web Applications

Laravel React TypeScript Tailwind CSS License

Build SaaS applications 10x faster with production-ready architecture

FeaturesQuick StartDocumentationTech Stack

🎯 Overview

Chann Labs Starter Kit is a production-ready Laravel + React boilerplate designed for developers who want to ship faster without compromising on code quality. Built with modern best practices, it includes everything you need to launch your next SaaS product.

✨ What Makes It Special

  • 🚀 Zero Configuration - Get started in minutes with automated setup
  • 🎨 Premium UI - 50+ Shadcn UI components with dark mode support
  • 🔐 Authentication Ready - Complete auth system with Laravel Fortify
  • 👥 Multi-Tenancy - Built-in team management and organization support
  • 📦 Type-Safe - Full TypeScript integration with Laravel Wayfinder
  • Lightning Fast - Optimized with Vite and SSR support
  • 🎭 Modern Stack - Laravel 12, React 19, Inertia.js, Tailwind CSS v4

🚀 Features

🔐 Authentication & Authorization

  • Login, Register, Email Verification
  • Password Reset & Two-Factor Authentication (2FA) ready
  • Role-based access control
  • Session management

👥 Team Management

  • Multi-tenant architecture
  • Team creation and management
  • Member invitations
  • Role and permission system

🎨 UI Components

  • 50+ pre-built Shadcn UI components
  • Dark mode support with system preference detection
  • Responsive design for all screen sizes
  • Hugeicons integration (3000+ icons)
  • Custom animations and transitions

🛠️ Developer Experience

  • TypeScript configuration
  • ESLint & Prettier setup
  • Laravel Pint for PHP formatting
  • Hot Module Replacement (HMR)
  • SSR support with Inertia.js
  • Type-safe routing with Laravel Wayfinder

📊 Additional Features

  • Database migrations and seeders
  • API routes and controllers
  • Queue system ready
  • Email notifications
  • File upload handling
  • Form validation

📦 Tech Stack

Backend

Frontend

Build Tools

🏁 Quick Start

Prerequisites

  • PHP 8.2 or higher
  • Composer
  • Node.js 18 or higher
  • MySQL/PostgreSQL/SQLite

Installation

  1. Clone the repository
git clone https://github.com/channlabs/channlabs-starter-kit.git
cd channlabs-starter-kit
  1. Run automated setup
composer setup

This will:

  • Install PHP dependencies
  • Copy .env.example to .env
  • Generate application key
  • Run database migrations
  • Install Node.js dependencies
  • Build frontend assets
  1. Start development server
composer dev

This runs:

Alternative: Manual Setup

# Install dependencies
composer install
npm install

# Environment setup
cp .env.example .env
php artisan key:generate

# Database setup
php artisan migrate

# Build assets
npm run build

# Start server
php artisan serve

🎨 Development

Available Commands

Composer Scripts

composer setup      # Complete project setup
composer dev        # Start development servers
composer dev:ssr    # Start with SSR support
composer lint       # Format PHP code
composer test       # Run tests

NPM Scripts

npm run dev         # Start Vite dev server
npm run build       # Build for production
npm run build:ssr   # Build with SSR
npm run lint        # Lint and fix JS/TS
npm run format      # Format code with Prettier
npm run types       # Check TypeScript types

Project Structure

channlabs-starter-kit/
├── app/                    # Laravel application
│   ├── Console/           # Artisan commands
│   ├── Http/              # Controllers, Middleware
│   └── Models/            # Eloquent models
├── database/              # Migrations, Seeders
├── resources/
│   ├── js/                # React application
│   │   ├── components/    # Reusable components
│   │   ├── layouts/       # Page layouts
│   │   ├── pages/         # Inertia pages
│   │   └── lib/           # Utilities
│   └── views/             # Blade templates
├── routes/                # Route definitions
│   ├── web.php           # Web routes
│   └── api.php           # API routes
└── tests/                 # Test files

📚 Documentation

Key Concepts

Routing

Routes are defined in routes/web.php and automatically generate TypeScript types via Laravel Wayfinder:

Route::get('/dashboard', function () {
    return Inertia::render('dashboard');
})->name('dashboard');
import { dashboard } from '@/routes';

<Link href={dashboard()}>Dashboard</Link>;

Components

All UI components are located in resources/js/components/ui/ and follow Shadcn UI patterns:

import { Button } from '@/components/ui/button';

<Button variant="outline">Click me</Button>;

Layouts

Page layouts are in resources/js/layouts/:

  • app-layout.tsx - Authenticated app layout
  • auth-layout.tsx - Authentication pages layout

🎨 Customization

Theming

Colors and design tokens are configured in tailwind.config.js. The starter kit uses CSS variables for theming:

@theme {
    --color-primary: oklch(0.6 0.2 250);
    --color-background: oklch(1 0 0);
}

Adding Components

Use Shadcn CLI to add new components:

npx shadcn@latest add [component-name]

🧪 Testing

# Run all tests
composer test

# Run PHP tests only
php artisan test

# Run with coverage
php artisan test --coverage

🚀 Deployment

Build for Production

npm run build
composer install --optimize-autoloader --no-dev
php artisan config:cache
php artisan route:cache
php artisan view:cache

Environment Variables

Key environment variables to configure:

APP_NAME="Your App Name"
APP_ENV=production
APP_DEBUG=false
APP_URL=https://yourdomain.com

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_DATABASE=your_database
DB_USERNAME=your_username
DB_PASSWORD=your_password

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

💬 Support

Built with ❤️ by Chann Labs

⭐ Star us on GitHub — it motivates us a lot!

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: TypeScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固