Download the PHP package aee/route-generator without Composer
On this page you can find all versions of the php package aee/route-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aee/route-generator
More information about aee/route-generator
Files in aee/route-generator
Package route-generator
Short Description Micro package for larabase to generate automatic routing system.
License MIT
Informations about the package route-generator
Route Generator
This is developed for larabase. This package is one of core packages of larabase which is responsible for creating dynamic routes for modules with a single file.
⚠️ Warnings
- Every module should have route_generator.php
Usage/Examples
In below, you'll see some commands and usage example of the package. First step create a route_generator.php file at the root of the module folder. Route_generator.php file should contains your route information which you would like show users. You should determine title, permission, data-feather-icon, routes as a required properties.
Nested Route
There are two types of route that we support for now. One of them is nested route which is collapsable. As you can see there is a permission under the title, I will be referring it as a global permission. Under the routes key, you can see two type of usage One of them is an array format to determine title, route and permission. In this case title and route are required but permission is optional property Another one is just route using url or route (you can also use laravel helper functions)
Single Route
Single route is consist of title, permission, data-feather-icon and routes same as nested route. Difference between nested and single is single route is not collapsable in the sidebar. It consist of just one route as below.
Generate Dynamic Routes
To generate dynamic routes, you can use :
Authors
🚀 About Me
I'm a full stack web developer who is also student at Collegium Da Vinci (CDV) in Poznan/Poland.