Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Illuminate
Support
Collection
flatMap
Illuminate\Support\Collection::flatMap PHP Method
Collection Class Documentation
Datei anzeigen
Open project: tightenco/collect
flatMap()
public
method
Map a collection and flatten the result by a single level.
public
flatMap
(
callable
$callback
) :
static
$callback
callable
return
static
public function flatMap(callable $callback) { return $this->map($callback)->collapse(); }
Collection
__construct
__toString
all
average
avg
chunk
collapse
combine
contains
containsStrict
count
diff
diffKeys
each
every
except
filter
first
flatMap
flatten
flip
forPage
forget
get
getArrayableItems
getCachingIterator
getIterator
groupBy
has
implode
intersect
isEmpty
jsonSerialize
keyBy
keys
last
make
map
mapWithKeys
max
median
merge
min
mode
offsetExists
offsetGet
offsetSet
offsetUnset
only
operatorForWhere
pipe
pluck
pop
prepend
pull
push
put
random
reduce
reject
reverse
search
shift
shuffle
slice
sort
sortBy
sortByDesc
splice
split
sum
take
toArray
toBase
toJson
transform
union
unique
uniqueStrict
useAsCallable
valueRetriever
values
where
whereIn
whereInStrict
whereStrict
zip