Install From Composer

In your project root directory, require the zschuessler/laravel-route-toclass package.

composer require zschuessler/laravel-route-to-class

Application Configuration

Add Service Provider

In this step you will add the package's service provider to your /config/app.php configuration.

 * Custom Service Providers
 * This line goes under the 'providers' array key, 
 * where other providers are registered.

Publish Configuration Files

In this step you will publish the package configuration files by running an artisan command.

php artisan vendor:publish --provider="Zschuessler\RouteToClass\ServiceProvider"

That's it! You're ready to start adding your own class generators.

What’s Next