endkind / routes
Automatic route loader for Laravel projects
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/endkind/routes
Requires
- php: ^8.1
- illuminate/support: ^10.0|^11.0|^12.0
This package is auto-updated.
Last update: 2025-12-22 22:49:55 UTC
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