Download the PHP package jornatf/laravel-route-generator without Composer
On this page you can find all versions of the php package jornatf/laravel-route-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jornatf/laravel-route-generator
More information about jornatf/laravel-route-generator
Files in jornatf/laravel-route-generator
Package laravel-route-generator
Short Description Laravel package to auto-generate routes from static blade view.
License MIT
Homepage https://github.com/jornatf/laravel-route-generator
Informations about the package laravel-route-generator
Laravel Route Generator
A Laravel package to auto-generate routes from static blade view.
You can use this package to generated simple page that does not require processing in a controller.
If you like this package you can Buy me a Coffee ☕️
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
To start and depending on the configurations, you must create in resources\views
, the folder with the same name as the value of view_base_path
(default: static
).
Then you'll have:
Here the routes will be generated:
Method | URL | Route name |
---|---|---|
GET | /about | static.about |
GET | /contact | static.contact |
You can then check the generation of the routes with the Artisan command:
Prefix
You can add prefix to your route group in the config file, like this:
Middlewares
You can add middlewares to your route group in the config file, like this:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Jordan Nataf
- All Contributors
License
The MIT License (MIT). Please see License File for more information.