mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 11:16:39 -05:00
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:
parent
77c9bf3c6a
commit
bfd4ddf091
2 changed files with 12 additions and 4 deletions
11
readme.md
11
readme.md
|
@ -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.
|
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.
|
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' ]
|
||||||
|
])
|
||||||
|
```
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
@set('menu', [
|
@set('menu', [
|
||||||
[ 'Contact', 'contact' ],
|
[ 'Contact', 'contact' ],
|
||||||
[ 'Subscriptions', 'subscriptions' ],
|
[ 'Subscriptions', 'subscriptions' ]
|
||||||
[ 'Shows', 'shows' ],
|
|
||||||
[ 'News', 'news' ],
|
|
||||||
[ 'Videos', 'videos' ]
|
|
||||||
])
|
])
|
||||||
|
|
||||||
@foreach($menu as $menu_item)
|
@foreach($menu as $menu_item)
|
||||||
|
|
Loading…
Reference in a new issue