What are traits in PHP ?

Traits are a mechanism for code reuse in single inheritance languages such as PHP. A Trait is intended to reduce some limitations of single inheritance by enabling a developer to reuse sets of methods freely in several independent classes living in different class hierarchies. Traits have been available in PHP since 5.4. A trait is a PHP file that uses the trait keyword instead of class.One of the benefits of traits over classes and inheritance is the ability to use multiple traits inside one class. This is sometimes compared to multiple inheritance which is a feature PHP does not support.... Read more

How to upload Multiple Image in Laravel

How to upload multiple image Today, i will show you how to create simple multiple image upload in laravel. I write article step by step about multiple image upload in laravel. I also added validation with image upload in laravel. Here i will follow object oriented php structure to upload imgae. It is very easy and preety awesome . Here i also validate image where user can only upload jpeg,png,jpg,gif type image. So doing it you can download a fresh laravel file or you can do it in your current running project. So just follow few steps. Here i will use a fresh laravel app . Now follo... Read more

LET'S SOCIALITE - passive income

Recent Tweets