Installation
For a Stable Release:
1 | composer require secrethash/dropmenu |
For the Development Version:
1 | composer require secrethash/dropmenu:dev-master |
Configurations
You will need to update you config\app.php
file to make it work.
Service Provider
Add the below line in your providers
array
1 | Secrethash\Dropmenu\DropmenuServiceProvider::class,
|
Facade
To access Dropmenu using Dropmenu
facade instead of Secrethash\Dropmenu
, you will need to update the aliases
array.
Add the below line in the aliases
array:
1 | 'Dropmenu' => Secrethash\Dropmenu\DropmenuFacade::class,
|
Migration
Generation
You can generate migration to migrate the database. The migration will create a 'menus' database following the structure requirements of secrethash/dropmenu
. The command for creating the migration file is:
1 | php artisan dropmenu:migration |
Migrate
The above command creates the migration file in database\migrations
directory. From there you will need to migrate using the migrate
command.
1 | php artisan migrate |
Once the migration is completed, you are ready to seed your database with the menu data. Create menus and play around with it. Let me know if something goes wrong.
Please Note
FEEL FREE TO CONTRIBUTE TO THIS PROJECT BY FORKING, CREATING A PULL REQUEST, CREATING AN ISSUE, ETC.. I'll be glad to answer them.