Showing 7 of 1,975 result(s)
forget($key) The forget method removes an item from the collection based on given $key . The forget method returns a reference to the original collection, meaning it modifies the collection instance it was called on. The following code example...
push($value) The push method is the logical opposite of the prepend method and will push an item onto the end of the collection. The push method returns a reference to the original collection instance. The following code example shows how to use...
The schedule:run command is used to run any commands that need to be ran. It is most often used in conjunction with a job or task scheduler utility, such as Cron. The command can be run in a one-off fashion like so: If there are no tasks that are...
The dd method will dump the contents of the collection and stop execution of the script; in this way, it works just like the global dd helper function except that it acts exclusively on the collections internal array.In the following example, we...
The sortBy method is useful and versatile way to sort collections by some key, or by some value returned by a $callback . The $callback can either be a function that defines two parameters: $value and $key or the $callback can be the name of some...
The project supervisor is responsible for ensuring that all project work is completed and all deadlines are met. He/She should be someone who can lead a team and make sure all deadlines are met, as well as keep track of all tasks throughout the...
I've recently been working on consolidating a number of websites. A common task when doing so is ensuring that all existing paths on separate domains are correctly redirecting to their new home. There are dedicated services that can handle these...