Remove shows, news and videos from the dashboard home, and add an entry to the readme explaining how to add models to the dashboard menu

This commit is contained in:
Kevin MacMartin 2016-01-29 00:00:50 -05:00
parent 77c9bf3c6a
commit bfd4ddf091
2 changed files with 12 additions and 4 deletions

View file

@ -239,3 +239,14 @@ If the value of `imgup` has been set to `true`, ensure `public/uploads/model_nam
By default, uploaded images are saved in JPEG format with the value of the `id` column of the respective row as its name and `.jpg` as its file extension.
When a row is deleted, its respective image will be deleted as well if it exists.
### Adding to the Dashboard Menu
Add an array to the menu array in `resources/views/dashboard/elements/menu.blade.php` where the visible title as the first item and the model name as the second:
```php
@set('menu', [
[ 'Page Name', 'model_name' ],
[ 'Contact', 'contact' ]
])
```

View file

@ -1,9 +1,6 @@
@set('menu', [
[ 'Contact', 'contact' ],
[ 'Subscriptions', 'subscriptions' ],
[ 'Shows', 'shows' ],
[ 'News', 'news' ],
[ 'Videos', 'videos' ]
[ 'Subscriptions', 'subscriptions' ]
])
@foreach($menu as $menu_item)