Showing 7 of 1,697 result(s)
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...
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...
…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...
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...
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...
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...
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,...