Showing 7 of 1,216 result(s)

/blog/2018/04/22/laravel-5-collections-the-public-api

…le aggregate functions, along with many others. This section will cover most of the methods in the public API, excluding those methods required to implement PHP's ArrayAccess and IteratorAggregate interfaces, as well as the getCachingIterator...

/blog/2018/04/11/laravel-5-array-helper-functions

Laravel provides many helper functions for interacting and manipulating array data structures. Laravel's array functions offer additional functionality on top of PHP's built in array functions. The helper functions in this section are located...

/blog/2016/11/29/laravel-messagebag-public-api-__tostring

…Internally this is accomplished by returning the result of the toJson method. After the above code executes, the $stringValue variable would contain the following value: {"first":["The first message"]}This article is the start of a mini-series...

/blog/2016/11/29/laravel-messagebag-public-api-add

…generally be the name of the form element being validated. Assuming the following HTML form element: <input type="text" name="username" /> Messages relating the username field could be stored like so:This article is the start of a mini-series...

/blog/2016/11/29/laravel-messagebag-public-api-all

…ieve all of the messages with the given format: The message was: :message After the above code has executed, the $messages variable will be an array and contain a value similar to the following output:This article is the start of a mini-series...

/blog/2016/11/29/laravel-messagebag-public-api-any

…ag instance actually has any messages. The method returns true if the instance has messages, otherwise it returns false . The following code examples demonstrate the usage of this fairly simple method:This article is the start of a mini-series...

/blog/2016/11/29/laravel-messagebag-public-api-count

The count method is a straightforward method and simply returns the total number of items in the collection. The count method returns an integer.This article is the start of a mini-series about Laravel's ErrorMessageBag component. Click through...

Some absolutely amazing
people

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.