endkind/routes
最新稳定版本:0.0.1
Composer 安装命令:
composer require endkind/routes
包简介
Automatic route loader for Laravel projects
README 文档
README
A minimal Composer package to automatically load route files from routes/routes in Laravel.
Includes convenient artisan commands to initialize and create route files.
🎞️ Installation
composer require endkind/routes
⚙️ Features
- Automatically loads all
.phpfiles inroutes/routes/ php artisan route:initto create theroutes/routesfolder and an examplehealth.phpphp artisan make:route <name>to quickly generate a route file template with a prefix
📂 Usage
Initialize folder
php artisan route:init
Creates:
routes/routes/health.php
Create a new route file
php artisan make:route dashboard
Creates:
<?php use Illuminate\Support\Facades\Route; Route::prefix('/dashboard')->group(function() { // });
🔧 How it works
This package registers a Laravel service provider that automatically scans the routes/routes folder and loads every .php file using the default web middleware group.
🧚 Requirements
- PHP 8.1 or higher
- Laravel 10, 11, or 12
📄 License
MIT License © Endkind
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-22