Skip to content

Commit f415585

Browse files
pxpmtabacitu
andauthored
add notice to copy the blade file too (#75)
* add notice to copy the blade file too * Apply suggestions from code review Co-authored-by: Cristian Tăbăcitu <[email protected]>
1 parent 57e959a commit f415585

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,18 @@ The only PRO of installing it as a package is that you may benefit from updates.
3939

4040
2) Paste the 'app' and 'database' folders over your projects (merge them). No file overwrite warnings should come up.
4141

42-
3) Replace all mentions of 'Backpack\MenuCRUD\app' in the pasted files with your application's namespace ('App' if you haven't changed it):
42+
3) Copy the `page_or_link.blade.php` file located in 'resources/views/fields' folder to your project's 'resources/views/vendor/backpack/crud/fields' folder. No file overwrite warnings should come up.
43+
44+
4) Replace all mentions of 'Backpack\MenuCRUD\app' in the pasted files with your application's namespace ('App' if you haven't changed it):
4345
- app/Http/Controllers/Admin/MenuItemCrudController.php
4446
- app/Models/MenuItem.php
4547

46-
4) Run the migration to have the database table we need:
48+
5) Run the migration to have the database table we need:
4749
```
4850
php artisan migrate
4951
```
5052

51-
5) Add MenuCRUD to your routes file:
53+
6) Add MenuCRUD to your routes file:
5254

5355
```
5456
Route::group(['prefix' => config('backpack.base.route_prefix', 'admin'), 'middleware' => ['web', 'auth'], 'namespace' => 'Admin'], function () {
@@ -57,7 +59,7 @@ Route::group(['prefix' => config('backpack.base.route_prefix', 'admin'), 'middle
5759
});
5860
```
5961

60-
6) [optional] Add a menu item for it in resources/views/vendor/backpack/base/inc/sidebar.blade.php or menu.blade.php:
62+
7) [optional] Add a menu item for it in resources/views/vendor/backpack/base/inc/sidebar.blade.php or menu.blade.php:
6163

6264
```html
6365
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('menu-item') }}"><i class="nav-icon la la-list"></i> <span>Menu</span></a></li>

0 commit comments

Comments
 (0)