Skip to content

BePark/laravel-route-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Route Controller

Get back the possibility to define Route::controller() inside laravel routes.

Deprecated see https://github.com/shrimpwagon/laravel-route-controller

Usage

// in the routes/web.php

Route::group(['middleware' => 'auth'], function()
{
	Route::controller('stuff', App\Controller\StuffController::class);
});

Installation using composer

composer require bepark/laravel-route-controller

Setup the service provider:

'providers' => [
    ...
    BePark\Libs\Laravel\RouteController\Provider\RouteControllerServiceProvider::class,
];

That's all

Todo

  • Automated tests
  • Add more docs than a simple readme

License

The MIT License (MIT). See the license file for more information.