Showing 10 of 2,145 results.

Laravel: Implementing a MD5 Hasher

In this article we will create an implementation of Illuminate\Contracts\Hashing\Hasher using PHP's crypt function and the CRYPT_MD5 hashing function. Like in the previous sections, we will examine each method before looking at the full...

Laravel Collection Public API: implode

implode($value, $glue = null) The implode method will combine the items of the collection together. The Collection 's implode method behaves differently than PHP's implode function in that it can operate on arrays of primitive data types as well...

Laravel Fluent Part One: Introduction

This article is part of a two part series covering the Laravel Fluent API. The articles in this series are: Laravel Fluent Part One: Introduction, Laravel Fluent Part Two: The Public API The Illuminate\Support\Fluent class is a useful data type....

Calculating Averages Using Collections in Laravel

The avg method is a useful method for calculating the average of all items in the collection. The avg method defines an optional $key parameter, which can be used to specify what property of the collection should be averaged. If no key is...

Additional Index Fields | Index Configuration

The documentation search provider makes many additional fields available for use when building the search results template. The following should be added to your fields configuration when using the docs: search provider: search_title, : The title...