If you need to use some code repeatedly in your Laravel applications. So for this, you do not need to write and use code again and again on controller, model, and blade views. For this, you can create a custom
Read More Laravel 10 Create and Use Helper Function Example Tutorial