Showing 10 of 2,044 results.

Laravel Array Helper Function: array_pull

pull(&$array, $key, $default = null) The pull helper method is similar to the get (covered in the Laravel Array Helper Function: array_get article) method in that it will return a value for the given $key in the $array (or the $default , if it is...

Specifying Custom Directive Names | The Document Parser

By default, the document parser does not know any custom directives available within an application. This decision was made to help keep the parser as standalone and reusable as possible. However, it is simple to teach the parser about custom...

Getting the Environment Name in Laravel 4

…your development machine and the production environment is the server where your end users access the application. Using environments, our Laravel 4 application can automatically change to a different database server or use a different cache...

Temporary/Ephemeral Links | Custom Metadata Tags

…etadata. This metadata will only persist for the current request, even when using the static site generator. A common example of ephemeral data is when using the se_meta:paginate tag. To queue custom, ephemeral, metadata, we can use the ephemeral...

Fluent and Closures | Laravel Fluent Part Two: The Public API

If we look at the following code example, one might be tempted to say that the value of $message would be Hello, world! , but that would be incorrect: 1 <?php 2 3 $ testObject = new stdClass ; 4 $ testObject -> method = function ( ) { 5 return '...

Multiple Pagination Instances | Responses and Replies

In the previous section, you may have noticed that the examples and descriptions were careful to mention that some values apply to the "current instance". This is because Meerkat allows you to have multiple threads on a single page, and if they...