Showing 7 of 1,975 result(s)
…on of an entry (based on headings), this will contain the heading's inner text., search_url, : The link to either the entry, in the case of the entry's leading content, or a, #, link to an individual section. Links to individual sections is based...
By default, Attribute Renderer will emit empty strings if a value returns null : 1 <?php 2 3 use function Stillat\StatamicAttributeRenderer\attributes ; 4 5 attributes ([ 6 'name' => 'author' , 7 'content' => '$name' 8 ]); produces: 1 name =...
lists($value, $key = null) The lists method is an alias of the pluck method. The lists method is used to retrieve the a list of values from the collection. It defines two parameters: $value and $key . The $value indicates which property should...
It is possible to schedule a function to execute at a given interval using the schedule's call method: Internally, the scheduling system will create a new instance of Illuminate\Console\Scheduling\CallbackEvent to represent the task within the...
In the introduction of this section, we saw this example code: We could do the same thing using the wrap method like so: The Arr::wrap method will not do anything to the input $value if it is already an array. We can round this section out by...
Right now, if a user attempts to register without providing a name they will receive an error. This happens because our users database table has the name column set to non-nullable. We could update our migrations and start over there, instead we...
filter(callable $callback = null) The filter method applies a filter to the collection. An optional $callback can be supplied to the filter method. If no $callback is supplied to the filter method, any value in the collection that evaluates to...