Showing 10 of 2,145 results.

Implementing a Customer Domain Specific Language Parser in PHP

In this article we are going to take a look at implementing a custom language parser in PHP. The language this parser will analyze will be fairly small, and serve a very specific purpose: to parse custom filter expressions from a string input....

Laravel Collection Public API: except

except($keys) The except method will return all the key/value pairs in the collection where the keys in the collection are not in the supplied $keys array. Internally, this method makes a call to the Illuminate\Support\Arr:except($array, $keys)...

Laravel 5 Collections: Sorting a Collection With sort

The sort method is used to sort the collection. If no $callback is provided, the collection will be sorted using a case-insensitive "natural order" algorithm. An optional $callback can be supplied to customize the comparison that is used when...

setConditions | Blade Compiler

Sets and overrides all custom condition handlers. In default setups, this is set to the return value of Illuminate\View\Compilers\BladeCompiler::$conditions protected property. Argument Description $conditions The condition handlers. 1 <?php 2 3...