What Are Return Types in PHP ?

What Are Return Types in PHP ?

I studied Java in my university. It was strictly typed programming language and had to define the return type for a function. But, I started my career as PHP developer with PHP programming. PHP 5.6 did not had a concept of return type or type hinting. In my early days, I used to get confused. I worked in many small to big projects. For all projects I used PHP and this language become primary backend programming language for me....

December 11, 2022 · 8 min · 1575 words · Prakash Bhandari
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