Global array_where Helper Function | Laravel 5: Conditionally Retrieving Array Values With where
The array_where function is a shortcut to calling Arr::where . This function is declared in the global namespace.
Showing 10 of 2,133 results.
The array_where function is a shortcut to calling Arr::where . This function is declared in the global namespace.
The Redirector class has many useful methods to help control the flow of users in your application. This section will not cover each method in detail, but simply shows how they can be used in conjunction with the redirect helper function: 1 //...
When an argument that is not null is supplied for the $to parameter, the redirect helper function will internally make a call to the to method on the Redirector instance. The function will also pass in all the arguments supplied to redirect as the...
resource($name, $controller, array $options = []) The resource function is a shortcut that is used to register a resource controller with the router. It accepts the $name of the route to create, the name of the $controller and an array of $options...
Sets the workspace compiler options. Argument Description $options The compiler options. 1 <?php 2 3 use Stillat \ BladeParser \ Document \ DocumentCompilerOptions ; 4 use Stillat \ BladeParser \ Workspaces \ Workspace ; 5 6 public function...
…finds (while not affecting the case of any other letters): Any number of spaces, The underscore, _, The hyphen, - Let's take a look at a few examples to see how this would format a few example strings. The string returned will appear above the...
Returns all the workspace conditions. This method automatically performs structural analysis. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 public function getAllConditions ( ) : Collection ;
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...
Because Statamic's search features do not emit any events, you will need to update your site's search results page in order to log searches. This can be done by inserting the {{ log_search /}} Antlers tag within your existing template: 1 {{ search...
app($make = null, $parameters = []) The app function provides access to the Illuminate\Container\Container instance. Because Container is a singleton, any call to app() will return the same Container instance. The app function can also be used to...