承接 endkind/routes 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

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 .php files in routes/routes/
  • php artisan route:init to create the routes/routes folder and an example health.php
  • php 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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-22