Download the PHP package sroutier/menu-builder without Composer
On this page you can find all versions of the php package sroutier/menu-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sroutier/menu-builder
More information about sroutier/menu-builder
Files in sroutier/menu-builder
Package menu-builder
Short Description A laravel package that allows to dynamically build and manage a set of menus and breadcrumb trails.
License GPLv3
Homepage https://github.com/sroutier/menu-builder
Informations about the package menu-builder
menu-builder
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.
Install
Via Composer
Declare provider
Add this declaration in the provider array of your ./config/app.php
file:
Declare facade
Add this declaration in the aliases array of your './config/app.php' file:
Publish assets
You will have to publish at least the migration script, the seeding scripts and the route example, but following the instructions below:
To publish all assets, run this command:
To publish only the migrations, run this command:
To publish only the seeds, run this command:
To publish only the config, run this command:
To publish only the routes, run this command:
To publish only the views, run this command:
Setup the database
Run the migration script to create the database with this command:
Then seed the database with at least the root
menu entry taken from the seed files that you published as shown in
the previous section. You could also edit the published seed files to add a few basic menu entries as shown in
those files. To seed the database add this line to your main database/seeds/DatabaseSeeder.php
file using
the code below:
Once ready, call the artisan seed command:
NOTE: If you are in a development environment and want to create a few extra menu entries, have a look at the seed
file MenuBuilderDevSeeder.php
that was publish along with the Prod file.
Define routes
You must define the routes that you want to use, this task can be helped by publishing the routes as shown in
the previous section. This will create a file called routes-menu-builder.php
in the directory app/Http
containing examples of routes needed for this package. You must configure your own routes by either copying and
pasting the content of the routes file, in part or in it's entirety, to your routes file app/Http/routes.php
,
or you could include a reference to the published file by adding a this line:
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Sebastien Routier
- All Contributors
License
The GNU General Public License Version 3 (GPLv3). Please see License File for more information.