Skip to content

Commit 8589270

Browse files
committed
Added alternative installation procedure to README
1 parent e7405d9 commit 8589270

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

README.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,50 @@ An admin panel for menu items on Laravel 5, using [Backpack\CRUD](https://github
1111

1212
## Install
1313

14-
1) In your terminal
14+
Since MenuCRUD is just a Backpack\CRUD example, you can choose to install it one of two ways.
15+
16+
**(A) Download and place files in your application** (recommended)
17+
18+
or
19+
20+
**(B) As a package**
21+
22+
The only PRO of installing it as a package is that you may benefit from updates. But the reality is there is very little (if any) bug fixing to do, so you probably won't need to update it, ever.
23+
24+
25+
26+
#### Intallation type (A) - download
27+
28+
29+
1) [Download the latest build](https://github.com/Laravel-Backpack/menumanager/archive/master.zip).
30+
31+
2) Paste the 'app' folder over your 'app' folder. No overwrite warnings should come up.
32+
33+
3) Run the migration to have the database table we need:
34+
```
35+
php artisan migrate
36+
```
37+
38+
4) Add MenuCRUD to your routes file:
39+
40+
```
41+
Route::group(['prefix' => 'admin', 'middleware' => ['web', 'auth'], 'namespace' => 'Admin'], function () {
42+
// Backpack\MenuCRUD
43+
CRUD::resource('menu-item', 'MenuItemCrudController');
44+
});
45+
```
46+
47+
5) [optional] Add a menu item for it in resources/views/vendor/backpack/base/inc/sidebar.blade.php or menu.blade.php:
48+
49+
```html
50+
<li><a href="{{ url('admin/menu-item') }}"><i class="fa fa-list"></i> <span>Menu</span></a></li>
51+
```
52+
53+
54+
55+
#### Intallation type (B) - package
56+
57+
1) In your terminal, run:
1558

1659
``` bash
1760
$ composer require backpack/menumanager
@@ -42,6 +85,7 @@ php artisan migrate
4285
```
4386

4487

88+
4589
## Change log
4690

4791
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

0 commit comments

Comments
 (0)