PHPackages                             tohuma/laravel-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tohuma/laravel-routes

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tohuma/laravel-routes
=====================

Grouping of routes on laravel

v1.0.0(10y ago)018MITPHP

Since May 5Pushed 10y ago1 watchersCompare

[ Source](https://github.com/tohuma/laravel-routers)[ Packagist](https://packagist.org/packages/tohuma/laravel-routes)[ Docs](https://github.com/tohuma/laravel-routers)[ RSS](/packages/tohuma-laravel-routes/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Routes
==============

[](#laravel-routes)

![license](https://camo.githubusercontent.com/ee061e6c1798bd95fa104c910010a3119850b186c323a1c848b3abcb029dc764/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e7376673f6d61784167653d32353932303030)

Inspired by [Laravel Multiple Routes](http://laravel-tricks.com/tricks/laravel-5-multiple-routes-files)

This package allow grouping routes by namespace, you only need to create a directory with the namespace on "../Http/Controllers/". Also it is necessary to create the file routes.php on that directory.

`This package doesn't disable the default routes of Laravel.`

### Required

[](#required)

PHP 5.5+ Laravel 5.x+ are required

### Installation

[](#installation)

You can install this package quickly and easily with Composer.

Run the following command in your terminal:

```
composer require tohuma/laravel-routes

```

Add **RouteServiceProvider** in **config/app.php**

```
'providers' => [
     ...
     Tohuma\Laravel\Routes\Providers\RouteServiceProvider::class,
],

```

### Example Usage

[](#example-usage)

Create directory **Blog** in **App\\Http\\Controllers**.

Create file **routes.php** in **App\\Http\\Controllers\\Blog** and add yours routes.

```
