Exploring PHP Traits

Exploring PHP Traits

PHP Traits are very helpful in PHP Programming, Trait means a class can only inherit from one other class. However, a lot of the time it would be beneficial to…

How to use Repository Pattern in Laravel

How to use Repository Pattern in Laravel

The Repository Pattern in Laravel is a very useful pattern with a couple of great uses. The first use is the abstraction that it provides. Meaning, it adds another layer…

How to Share Data in Partial Views using Laravel View Composer

How to Share Data in Partial Views using Laravel View Composer

Have you ever been in a situation, where you have to share the same data with multiple views in Laravel application? Surely, you can pass the data using controllers to…