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
- Clone the repository:
git clone https://github.com/ianlabicani/laravel-blade-starter.git your-project-name
cd your-project-name
- Run the setup script:
composer run setup
This will automatically:
- Install PHP dependencies
- Copy
.env.exampleto.env - Generate application key
- Run database migrations
- Install NPM dependencies
- Build frontend assets
- Configure your
.envfile 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
- Run migrations to create database tables:
php artisan migrate
- (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
.envfile 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 loginregister.blade.php- User registrationforgot-password.blade.php- Password reset requestreset-password.blade.php- Password reset formverify-email.blade.php- Email verificationconfirm-password.blade.php- Password confirmation
Layout Templates
resources/views/public/layout.blade.php- Public pages layoutresources/views/admin/layout.blade.php- Admin dashboard layoutresources/views/super-admin/layout.blade.php- Super Admin dashboard layout
Role-Based Routing
routes/web.php- Public and dashboard routesroutes/auth.php- Authentication routesroutes/admin.php- Admin-only routesroutes/super-admin.php- Super Admin-only routes
Models
app/Models/User.php- User model with role relationshipsapp/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
- Update branding: Modify the app name in
resources/views/public/layout.blade.php - Customize colors: Edit Tailwind classes throughout the views
- Add new roles: Create migrations and update the Role model
- 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
- Laravel 12 - PHP Framework
- Laravel Breeze - Authentication Scaffolding
- Tailwind CSS - CSS Framework
- Font Awesome - Icon Library
- Vite - Frontend Build Tool
- Pest - Testing Framework
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 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ianlabicani/laravel-blade-starter 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Automatically logs-in users if they are already authenticated by a remote source. (e.g. environment variable REMOTE_USER)
GraphQL authentication for your headless Craft CMS applications.
Laravel middleware to restrict a site or specific routes using HTTP basic authentication
Email Toolkit Plugin for CakePHP
A list of dangerous usernames
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-23