Search

Showing 7 of 1,697 result(s)

/blog/2016/11/20/a-comparison-of-the-abort-abort_if-and-abort_unless-helper-functions

This article is a short comparison of the following application helper functions: Laravel Application Helper Function: abort, Laravel Application Helper: abort_if, Laravel Application Helper: abort_unless All three functions ( abort , abort_if and...

/blog/2018/04/22/laravel-5-collections-filtering-a-collection-based-on-key-presence-with-wherein

The whereIn method is used to filter the collection based on a given $key and an array of the possible $values that the $key can have. The method also defines an optional $strict parameter, which when an argument with a truth value of true is...

/blog/2020/12/29/creating-a-custom-statamic-500-server-error-page#content-statamic-views-directory-structure

…o override the 500 Server Error page we can create a new file named 500.html . You may have noticed that we did not use the .antlers.html or the .blade.html extension. The reason for this is that those two extensions rely on the server-side stack...

/blog/2018/04/22/laravel-5-collections-reducing-a-collection-to-one-element-with-reduce

The reduce method is to reduce a collection into only one item. It does this by iterating over the collection and applying the $callback function on each element. The $callback function should define two parameters: $carry and $item . The $carry...

/blog/2022/07/18/antlers-and-blade-formatters-behind-the-scenes#content-the-document-transformer

Both the Blade and Antlers TypeScript parsers have the concept of the document transformer. This special class takes the parsed results and converts them into a structured document that can be formatted with existing tools. These transformers do...

/blog/2014/07/28/part-two-creating-a-custom-pagination-view-in-laravel

This is part two of two in a series of posts on how to create a custom pagination view in Laravel. Before reading this part, it is highly recommended that your first read Part One: Creating a Custom Pagination View in Laravel of this series. In...

/blade-parser/v1/core-concepts

The heart of the Blade Parser library is its Document Parser. This parser is responsible for reading through a Blade template and extracting information from it. It accomplishes this by looking for Blade constructs, such as directives, comments,...