Decorate your Nova sidebar
1 minute reading  ~  229 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

© 2021 atm-code. All rights reserved.
made with ❤️ by Wink and tailwindcss