Search

Showing 7 of 1,975 result(s)

/blog/2016/11/29/laravel-collection-public-api-forget

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...

/blog/2016/11/30/laravel-collection-public-api-push

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...

/blog/2016/12/07/laravel-artisan-schedule-command-the-schedulerun-command

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...

/blog/2018/04/22/laravel-5-collections-dumping-the-collection-contents-and-stopping-script-execution-for-debugging-with-dd

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...

/blog/2018/04/22/laravel-5-collections-sorting-a-collection-based-on-a-key-value-with-sortby

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...

/blog/2023/02/10/how-to-structure-your-cybersecurity-team-to-work-in-an-agile-environment#content-designate-a-supervisor-for-each-project

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...

/blog/2023/11/29/creating-simple-http-redirect-routes-from-a-statamic-site

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...