Showing 10 of 1,322 results.

Laravel Macros: An Easy Way to Extend Laravel Components

Macros are a way to reduce the lines of code a developer has to write, and can be traditionally thought of as "shortcuts". Laravel generally uses macros to add, or inject, functions into various classes at runtime. Developers familiar with C# can...

Laravel Array Helper Function: array_first

first($array, callable $callback = null, $default = null) Let's begin discussing the first helper method be examining the $callback . The $callback is a function that accepts a $key and a $value as its parameters. The following code sample is an...

Laravel Task Scheduler: An Introduction

…el's task scheduler, not with third party systems (the third party systems would then be required to call the Laravel task scheduler, however). The benefit to this is that all the scheduled tasks are managed through your applications code and can...

Configuring the Compiler | Blade Compiler

The provided compiler implementation works to be independent of the core compiler in many ways. As such, it needs to be taught about components such as namespaces, aliases, custom conditions or directives, etc.

include | Blade Compiler

Register an include alias directive. This method has the same behavior as the Illuminate\View\Compilers\BladeCompiler::include method. You do not need to manually call this method to sync compiler information if you use the default compiler...

aliasInclude | Blade Compiler

Register an include alias directive. This method has the same behavior as the Illuminate\View\Compilers\BladeCompiler::aliasInclude method. You do not need to manually call this method to sync compiler information if you use the default compiler...

aliasComponent | Blade Compiler

Register a component alias directive. This method has the same behavior as the Illuminate\View\Compilers\BladeCompiler::aliasComponent method. You do not need to manually call this method to sync compiler information if you use the default...

Laravel Collection Public API: whereIn

…lied, will cause the method to check the types of each item in the collection against the types in the supplied $values array ( $strict is set to true by default). This method does not change the original Collection instance and will return a...

Laravel Collection Public API: every

every($step, $offset = 0) The every method can be used to retrieve a subset of a collection based on each items distance from each other. It defines one required parameter $step and one optional parameter $offset . An argument supplied for $step...