2017 © Pedro Peláez
 

library laravel-routes-publisher

A command to replace deprecated Route::controller with explicit routes.

image

themsaid/laravel-routes-publisher

A command to replace deprecated Route::controller with explicit routes.

  • Wednesday, August 16, 2017
  • by themsaid
  • Repository
  • 4 Watchers
  • 57 Stars
  • 9,789 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 8 Open issues
  • 3 Versions
  • 21 % Grown

The README.md

Laravel Routes Publisher

A command to replace deprecated Route::controller() and Route::controllers() with explicit routes., (*1)

what it does, (*2)

In laravel 5.3 implicit controller routes will be removed from the framework, the functionality will likely be extracted into a separate package, however if you'd like to make the move and start using explicit routes this package will help you., (*3)

Installation

Step 1:

composer require themsaid/laravel-routes-publisher

Step 2:

Include the following command in your $commands attribute of app/Console/Kernel.php:, (*4)

\Themsaid\RoutesPublisher\RoutesPublisherCommand::class

Usage

Run the following command:, (*5)

php artisan themsaid:publishRoutes

After the command is done, two new files will be generated in your app/Http directory:, (*6)

routes.php.generated
routes.php.backup

Replace the content of your routes.php file with that of routes.php.generated, knowing that if anything went wrong a backup of your original routes.php's content will be available in routes.php.backup., (*7)

This package assumes the following:

  • Your routes.php doesn't contain any PHP syntax errors.
  • Your routes.php file is located in app\Http\routes.php with the exact name.
  • Your routes.php files doesn't include any other file using include or require.
  • Your Application namespace is correctly registered in the psr-4 section of composer.json.

Problems?

I tried hard to cover different syntax and file formatting in this package, however if you found any problems while using the package please open a new issue., (*8)

The Versions

16/08 2017

dev-master

9999999-dev https://github.com/themsaid/laravel-routes-publisher

A command to replace deprecated Route::controller with explicit routes.

  Sources   Download

MIT

The Requires

 

laravel routes

23/03 2016

v1.0.1

1.0.1.0 https://github.com/themsaid/laravel-routes-publisher

A command to replace deprecated Route::controller with explicit routes.

  Sources   Download

MIT

The Requires

 

laravel routes

23/03 2016

v1.0.0

1.0.0.0 https://github.com/themsaid/laravel-routes-publisher

A command to replace deprecated Route::controller with explicit routes.

  Sources   Download

MIT

The Requires

 

laravel routes