How to Create Custom Laravel Facades And Use Them In Your Laravel Applications?

How to Create Custom Laravel Facades And Use Them In Your Laravel Applications?

In this post, I will cover what is facades in Laravel, how to create your own custom facades and use them in Laravel applications. Probably, facades are one of the discussed topics in the laravel community. According to Dictionary.com The word ‘facade’ refers to a “superficial appearance or illusion of something.” In architecture, the term refers to the front of a building. Any side of a building facing a public way or space and finished accordingly...

December 7, 2022 · 6 min · 1145 words · Prakash Bhandari
Create Laravel Composer Package From Scratch and Publish on Packagist

Create Laravel Composer Package From Scratch and Publish on Packagist

In this post, I’m going to explain how you can create Laravel package locally and publish to Packagist. To demonstrate, I will create a package to convert Hindu Arabic(Nepali) number to English and English number to Hindu Arabic (Nepali). Creating Laravel package is not that hard. In few simple steps you can create your own package. I will go through few steps: Step #1: Install Laravel I choose Laravel 9 because Laravel 9 is the latest version of Laravel....

December 4, 2022 · 8 min · 1693 words · Prakash Bhandari