hexadog / laravel-themes-manager

Bring multi themes support to your Laravel application with a full-featured Themes Manager
https://laravel-themes-manager.netlify.app
MIT License
152 stars 31 forks source link

How to create custom components? #77

Closed minhkhoablieu closed 11 months ago

minhkhoablieu commented 11 months ago

Sometimes I also need to create components to simplify my code. I also tried creating a comment, but it didn't work. So how to create a custom component?

gaetan-hexadog commented 11 months ago

Hi,

you should be able to create a Blade component class into your theme and manually register it in your AppProvider (see: https://laravel.com/docs/10.x/blade#manually-registering-components).