How To Use Laravel Route Model Binding

Laravel has a bunch of features that makes development much easy. One of these features is Route Model binding so instead of using the primary key of the table to fetch the data of a single item we can take the advantage of route model binding as shown below.   Let’s demonstrate this with an […]

Share this:
Read More »

PHP Using Closures in arrays

Have you ever thought some day how to iterate a list of functions in php. In this tutorial i will show a feature in PHP 5.4 and above related to Closures  and arrays which is how to create arrays that contain a Closures. With This feature in place you can iterate an array of functions […]

Share this:
Read More »

4 Ways To Make Remote Requests In PHP

Making remote requests is an important aspect of web applications and nowadays most web applications work entirely through remote calls to external Apis. Remote requests is useful when you need to fetch data from external sources like for example the Facebook, Twitter, and Google login that you see in most websites works through remote http […]

Share this:
Read More »

Factory Design Pattern In PHP

In this tutorial we will demonstrate The Factory Method Pattern. This is another creational pattern which aims to creating objects from another classes without revealing the actual class implementation and also achieves the “Dependency Inversion Principle”.   the factory method pattern is a creational pattern that uses factory methods to deal with the problem of […]

Share this:
Read More »

PHP OOP With Magic Methods

In this tutorial we will learn about exclusive topic in php oop which is Magic Methods. Any class that you create in php has some built in methods. Those methods are special methods that allow you to react to certain events during class life cycle. Magic methods begin with __ and any one of us […]

Share this:
Read More »