Documentation

SettingsCollection extends Collection implements CastsCollections

SettingsCollection

Tags
implements

CastsCollections<array-key, Setting>

extends

Collection<array-key, Setting>

Interfaces, Classes, Traits and Enums

CastsCollections
CastsCollections

Table of Contents

first()  : Setting
firstOrFail()  : Setting
from()  : CastsCollections<TKey, TValue>
fromArray()  : CastsCollections<TKey, TValue>
New collection from array.
fromJson()  : CastsCollections<TKey, TValue>
New collection from JSON.

Methods

first()

public first(callable $callback = null, mixed $default) : Setting
Parameters
$callback = null : callable
$default : mixed
Return values
Setting

firstOrFail()

public firstOrFail(mixed $key, mixed $operator, mixed $value) : Setting
Parameters
$key : mixed
$operator : mixed
$value : mixed
Return values
Setting

Search results