Showing 7 of 1,975 result(s)
Higher order messages are a concept that allows you to invoke methods on objects within a collection using property accessors syntax. The following example will use the Laracon EU collection be built in the previous section. We will create a new...
Instead of trying to write a super parser, what if we could convert our Blade and Antlers documents into something that could be formatted using existing tools like Prettier or Beautify HTML? Let's consider this more straightforward Blade example:...
The last method is the logical opposite of the first method, and is used to get the last item in a collection, or to get the last item in a collection that matches a certain criteria. A $callback can be supplied to return the last item in the...
The type of training you provide to your cybersecurity personnel will depend on the job they are tasked with doing . If your cybersecurity personnel are responsible for protecting a network, they will need to understand how networks work...
The reject method used to create a new Collection instance containing all the items in the collection that do not pass a given truth test. The reject method only defines one parameter: $callback . The $callback function should only have one...
The unique method can be used to get all the unique items in the collection. It accepts an optional $key argument which can be used to further restrict which items are returned. The unique method returns a new instance of Collection with the items...
…h any more setup tasks in order to start receiving comments it will just work. Enter a comment into your new form and activate the "Submit your comment!" button. Once you have done this, navigate to the Comment Manager within the Control Panel;...