ianlabicani/laravel-blade-starter 问题修复 & 功能扩展

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

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

ianlabicani/laravel-blade-starter

Composer 安装命令:

composer create-project ianlabicani/laravel-blade-starter

包简介

A Laravel Breeze starter template with RBAC-ready structure, role-based dashboards, and authentication scaffolding for quick project setup.

README 文档

README

A clean and minimal Laravel starter template with Laravel Breeze authentication and RBAC-ready structure for building role-based applications quickly. Perfect for projects that need user authentication, role management, and separate dashboards right out of the box.

Features

  • Laravel 12 - Latest Laravel framework
  • 🔐 Laravel Breeze - Simple authentication scaffolding
  • 👥 RBAC Structure - Role-based access control ready
  • 🎨 Tailwind CSS - Modern utility-first CSS framework
  • 🚀 Role-Based Dashboards - Separate dashboards for Super Admin, Admin, and users
  • 📱 Responsive Design - Mobile-friendly layouts
  • 🎯 Font Awesome Icons - Beautiful icons throughout
  • 🎭 No-Role Page - Dedicated page for users without assigned roles
  • 🧪 Pest Testing - Modern PHP testing framework

Requirements

  • PHP >= 8.2
  • Composer
  • Node.js & NPM
  • MySQL or any supported database

Installation

Creating a New Project from This Template

You can create a new project using Composer's create-project command:

composer create-project ianlabicani/laravel-blade-starter your-project-name

Manual Installation

  1. Clone the repository:
git clone https://github.com/ianlabicani/laravel-blade-starter.git your-project-name
cd your-project-name
  1. Run the setup script:
composer run setup

This will automatically:

  • Install PHP dependencies
  • Copy .env.example to .env
  • Generate application key
  • Run database migrations
  • Install NPM dependencies
  • Build frontend assets
  1. Configure your .env file with your database credentials:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_username
DB_PASSWORD=your_password
  1. Run migrations to create database tables:
php artisan migrate
  1. (Optional) Seed the database with sample data:
php artisan db:seed

Available Scripts

This template includes several useful Composer scripts to streamline your development workflow:

Setup Script

composer run setup

Sets up the entire project from scratch:

  • Installs all PHP dependencies
  • Creates .env file from example
  • Generates application key
  • Runs database migrations
  • Installs Node.js dependencies
  • Builds frontend assets

Development Script

composer run dev

Starts all development services concurrently:

  • Laravel development server (php artisan serve)
  • Queue worker (php artisan queue:listen)
  • Vite dev server (npm run dev)

This uses concurrently to run all three services in one terminal window with color-coded output.

Test Script

composer run test

Runs the test suite:

  • Clears configuration cache
  • Executes all Pest tests

Project Structure

Authentication Views

All authentication views are located in resources/views/auth/:

  • login.blade.php - User login
  • register.blade.php - User registration
  • forgot-password.blade.php - Password reset request
  • reset-password.blade.php - Password reset form
  • verify-email.blade.php - Email verification
  • confirm-password.blade.php - Password confirmation

Layout Templates

  • resources/views/public/layout.blade.php - Public pages layout
  • resources/views/admin/layout.blade.php - Admin dashboard layout
  • resources/views/super-admin/layout.blade.php - Super Admin dashboard layout

Role-Based Routing

  • routes/web.php - Public and dashboard routes
  • routes/auth.php - Authentication routes
  • routes/admin.php - Admin-only routes
  • routes/super-admin.php - Super Admin-only routes

Models

  • app/Models/User.php - User model with role relationships
  • app/Models/Role.php - Role model

Usage

Running the Application

Start the development server:

composer run dev

Or manually start services:

# Terminal 1: Laravel Server
php artisan serve

# Terminal 2: Queue Worker
php artisan queue:listen

# Terminal 3: Vite Dev Server
npm run dev

Visit http://localhost:8000 in your browser.

Role Management

Users can have roles assigned through the role_user pivot table. The dashboard automatically redirects users based on their role:

  • Super Admin → Super Admin Dashboard
  • Admin → Admin Dashboard
  • No Role → No-Role Page (informational page)

Customization

  1. Update branding: Modify the app name in resources/views/public/layout.blade.php
  2. Customize colors: Edit Tailwind classes throughout the views
  3. Add new roles: Create migrations and update the Role model
  4. Extend dashboards: Add new routes and views in respective role folders

Testing

Run the test suite:

composer run test

Or use Pest directly:

./vendor/bin/pest

AI-Assisted Development

This project includes comprehensive AI coding assistance to help you develop faster and more efficiently.

Copilot Instructions

Custom GitHub Copilot instructions are provided in .github/copilot-instructions.md to ensure AI suggestions follow the project's patterns and best practices. These instructions cover:

  • Project structure and architecture conventions
  • RBAC patterns and role management
  • Controller and view naming conventions
  • Route organization guidelines
  • Testing patterns with Pest
  • Tailwind CSS usage conventions

The instructions help AI assistants understand the project context and provide more accurate suggestions aligned with Laravel 12 and this starter's structure.

Laravel Boost MCP

For the best development experience, use Laravel Boost - a Model Context Protocol (MCP) server designed specifically for Laravel applications. Laravel Boost provides:

  • Smart Documentation Search - Version-specific Laravel documentation for your packages
  • Artisan Command Integration - Direct access to Artisan commands
  • Tinker Integration - Execute PHP code and query Eloquent models directly
  • Database Querying - Read from database without writing PHP
  • Browser Log Reading - Debug frontend issues easily
  • Absolute URL Generation - Get correct project URLs automatically

Installing Laravel Boost

php artisan boost:install

Once installed, Laravel Boost integrates with VS Code's GitHub Copilot and other AI assistants to provide context-aware development support.

Built With

License

This project is open-sourced software licensed under the MIT license.

Contributing

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

Credits

Created by Ian Labicani

ianlabicani/laravel-blade-starter 适用场景与选型建议

ianlabicani/laravel-blade-starter 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 23 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「framework」 「Authentication」 「laravel」 「rbac」 「breeze」 「starter-template」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 ianlabicani/laravel-blade-starter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 ianlabicani/laravel-blade-starter 我们能提供哪些服务?
定制开发 / 二次开发

基于 ianlabicani/laravel-blade-starter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-23