Closed minhkhoablieu closed 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?
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).
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?