Laravel provides a nice extensible and easy validation class to validate user inputs but Sometimes we may need to forcefully invalidate a passed validation. For example, a few days ago I realized that in one of my projects. I had a table with fields group_name and name along with other...
→ Read MoreAccording to Laravel, all multi-result sets returned by Eloquent, either via the get method or a relationship, will return a collection object. This object implements the IteratorAggregate PHP interface so it can be iterated over like an array. However, this object also has a variety of other helpful methods for...
→ Read MoreThere is no Input class in Laravel, instead it uses Request class for any Input::method() calls. Basically, we extend a class in OOP language to add some extra functionalities to a base (already created) class and in PHP, for example, if you have following class class BaseClass { public function...
→ Read MoreOn October 24, 2013, WordPress Version 3.7, named for Count Basie, was released. It has some cool new features and one of those is that, developers can now query for posts within a date range, or that are older than or newer than a specific point in time using date_query...
→ Read MoreA few days ago I’ve posted an article, titled Taste Of JavaScript In Php (as my random ideas) where I wrote a class to create dynamic Php objects in the run time and it requires Php 5.4+ and this is another follow up of that article, the updated version of...
→ Read MoreIconfig (Instant config) is a stand alone component/package for any PHP application, which is built to easily manage configurations for any PHP application, available on Packagist. How To Use : At first, install it using composer, if you don’t know how to use composer then learn to use it and...
→ Read MoreWell, It’s true that Php was not matured enough in it’s early days but now Php become very so much powerful and recently Php 5.5.x has been arrived with some cool new features which are really powerful additions to Php so thanks to Php who are working hard to make...
→ Read MoreOn 20-Jun-2013, the PHP development team has announced the immediate availability of PHP 5.5.0 and this release includes a large number of new features and bug fixes. The new features of PHP 5.5.0 includes : Generators : Support for generators has been added via the yield keyword. Generators provide an...
→ Read More