PHPackages                             endkind/routes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. endkind/routes

ActiveLibrary[Framework](/categories/framework)

endkind/routes
==============

Automatic route loader for Laravel projects

0.0.1(1y ago)192MITPHPPHP ^8.1

Since May 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Endkind/laravel-routes)[ Packagist](https://packagist.org/packages/endkind/routes)[ RSS](/packages/endkind-routes/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel Auto Route Loader
=========================

[](#laravel-auto-route-loader)

**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
---------------

[](#️-installation)

```
composer require endkind/routes
```

---

⚙️ Features
-----------

[](#️-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 ` to quickly generate a route file template with a prefix

---

📂 Usage
-------

[](#-usage)

### Initialize folder

[](#initialize-folder)

```
php artisan route:init
```

Creates:

```
routes/routes/health.php

```

### Create a new route file

[](#create-a-new-route-file)

```
php artisan make:route dashboard
```

Creates:

```
