Skip to content

Commit fdf296b

Browse files
committed
updated readme
1 parent c4fe32d commit fdf296b

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

README.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,36 @@ An admin panel for menu items on Laravel 5, using [Backpack\CRUD](https://github
1111

1212
## Install
1313

14-
Via Composer
14+
1) In your terminal
1515

1616
``` bash
17-
$ composer require laravel-backpack/menumanager
17+
$ composer require backpack/menumanager
1818
```
1919

20-
## Usage
20+
2) Then add the service providers to your config/app.php file:
2121

22-
``` php
23-
$skeleton = new League\Skeleton();
24-
echo $skeleton->echoPhrase('Hello, League!');
2522
```
23+
'Backpack\MenuManager\MenuManagerServiceProvider',
24+
```
25+
26+
3) Publish the migration:
27+
28+
```
29+
php artisan vendor:publish --provider="Backpack\MenuManager\MenuManagerServiceProvider"
30+
```
31+
32+
4) Run the migration to have the database table we need:
33+
34+
```
35+
php artisan migrate
36+
```
37+
38+
5) [optional] Add a menu item for it in resources/views/vendor/backpack/base/inc/sidebar.blade.php or menu.blade.php:
39+
40+
```html
41+
<li><a href="{{ url('admin/menu-item') }}"><i class="fa fa-list"></i> <span>Menu</span></a></li>
42+
```
43+
2644

2745
## Change log
2846

0 commit comments

Comments
 (0)