Decorate your Nova sidebar
1 minute reading  ~  60 visits
Publication Date: 2019/06/14 - 05:27 pm


the same trick we used to sort the navigation menu in Laravel Nova , which was mentioned
here
, we also can add another property in your nova resource :

public static $icon = 'fa-flag';

and in your navigation.blade.php just add :


you can set the default icon and customize the style as you want .

<i class="fa fa-{ { $resource::$icon ?? 'fa-chevron-left' } }></i>

I hope that helps someone , see you in the next post




Copyright 2019 - atm-code
made with ❤️ by Wink and tailwindcss