Skip to content

Commit

Permalink
attach custom variables in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
sl0wik committed Sep 19, 2018
1 parent 6f657fc commit 8a0164c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static function generate($name, $languageCode = null)
if (empty($languageCode)) {
$languageCode = getCurrentLanguageCode();
}
$fields = ['url_path', 'id', 'parent_id', 'head_title', 'menu_title', 'website_id', 'status'];
$fields = ['url_path', 'id', 'parent_id', 'head_title', 'menu_title', 'website_id', 'status', 'custom'];
$content = self::where('name', $name)
->where('website_id', env('WEBSITE_ID'))
->with('contents')
Expand Down

0 comments on commit 8a0164c

Please sign in to comment.