Showing 10 of 1,280 results.

Laravel Collection Public API: prepend

prepend($value, $key = null) The prepend method will add an a given $value to the beginning of the collection. You can also supply an optional $key that will be used as the key for the new $value when adding an item to the beginning of an...

Laravel Artisan Schedule Command: The schedule:run 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: 1 # Run the schedule command...

Laravel Application Helper Function: redirect

redirect($to = null, $status = 302, $headers = [], $secure = null) The redirect helper function is a versatile helper function. The $to parameter is defined with a default value of null . When $to is null , the redirect function by default will...

Laravel Miscellaneous Helper Function: windows_os

windows_os The windows_os helper function can be used to determine if the host server is running a Microsoft Windows® operating system. The function returns either true —if the server is running Windows®—or false —if the server is not running...

Laravel Collection Public API: shift

shift The shift method is used to remove the first item from the collection and return its value. The shift method modifies the collection instance. The following code example shows how to use the shift method: 1 <?php 2 3 use Illuminate \ Support...

Laravel Router Helper Function: put

put($uri, $action) The put function is a shortcut to registering a route with the router that responds to the PUT HTTP verb. The $uri is the URI of the route, such as / or login . The $action is what will be executed by the router when the route...

Laravel Router Helper Function: get

get($uri, $action) The get function is a shortcut to registering a route with the router that responds to the GET HTTP verb. The $uri is the URI of the route, such as / or login . The $action is what will be executed by the router when the route...

Filter Search