Documentation
¶
Index ¶
- type BaseCollection
- func (c BaseCollection) All() []interface{}
- func (c BaseCollection) Average()
- func (c BaseCollection) Avg(key ...string) decimal.Decimal
- func (c BaseCollection) Chunk(num int) MultiDimensionalArrayCollection
- func (c BaseCollection) Collapse() Collection
- func (c BaseCollection) Combine(value []interface{}) Collection
- func (c BaseCollection) Concat(value interface{}) Collection
- func (c BaseCollection) Contains(value interface{}, callback ...interface{}) bool
- func (c BaseCollection) ContainsStrict(value interface{}, callback ...interface{}) bool
- func (c BaseCollection) Count() int
- func (c BaseCollection) CountBy(callback ...interface{}) map[interface{}]int
- func (c BaseCollection) CrossJoin(array ...[]interface{}) MultiDimensionalArrayCollection
- func (c BaseCollection) Dd()
- func (c BaseCollection) Diff()
- func (c BaseCollection) DiffAssoc()
- func (c BaseCollection) DiffKeys()
- func (c BaseCollection) Dump()
- func (c BaseCollection) Each()
- func (c BaseCollection) EachSpread()
- func (c BaseCollection) Every()
- func (c BaseCollection) Except()
- func (c BaseCollection) Filter()
- func (c BaseCollection) First()
- func (c BaseCollection) FirstWhere()
- func (c BaseCollection) FlatMap()
- func (c BaseCollection) Flatten()
- func (c BaseCollection) Flip()
- func (c BaseCollection) ForPage()
- func (c BaseCollection) Forget()
- func (c BaseCollection) Get()
- func (c BaseCollection) GroupBy()
- func (c BaseCollection) Has()
- func (c BaseCollection) Implode()
- func (c BaseCollection) Intersect()
- func (c BaseCollection) IntersectByKeys()
- func (c BaseCollection) IsEmpty()
- func (c BaseCollection) IsNotEmpty()
- func (c BaseCollection) Join(delimiter string) string
- func (c BaseCollection) KeyBy()
- func (c BaseCollection) Keys()
- func (c BaseCollection) Last()
- func (c BaseCollection) Macro()
- func (c BaseCollection) Make()
- func (c BaseCollection) Map()
- func (c BaseCollection) MapInto()
- func (c BaseCollection) MapSpread()
- func (c BaseCollection) MapToGroups()
- func (c BaseCollection) MapWithKeys()
- func (c BaseCollection) Max(key ...string) decimal.Decimal
- func (c BaseCollection) Median()
- func (c BaseCollection) Merge()
- func (c BaseCollection) Min(key ...string) decimal.Decimal
- func (c BaseCollection) Mode(key ...string) []interface{}
- func (c BaseCollection) Nth()
- func (c BaseCollection) Only(keys []string) Collection
- func (c BaseCollection) Pad()
- func (c BaseCollection) Partition()
- func (c BaseCollection) Pipe()
- func (c BaseCollection) Pluck(key string) Collection
- func (c BaseCollection) Pop()
- func (c BaseCollection) Prepend(values ...interface{}) Collection
- func (c BaseCollection) Pull(key interface{}) Collection
- func (c BaseCollection) Push()
- func (c BaseCollection) Put(key string, value interface{}) Collection
- func (c BaseCollection) Random()
- func (c BaseCollection) Reduce()
- func (c BaseCollection) Reject()
- func (c BaseCollection) Reverse()
- func (c BaseCollection) Search()
- func (c BaseCollection) Shift()
- func (c BaseCollection) Shuffle()
- func (c BaseCollection) Slice()
- func (c BaseCollection) Some()
- func (c BaseCollection) Sort()
- func (c BaseCollection) SortBy(key string) Collection
- func (c BaseCollection) SortByDesc()
- func (c BaseCollection) SortKeys()
- func (c BaseCollection) SortKeysDesc()
- func (c BaseCollection) Splice(index ...int) Collection
- func (c BaseCollection) Split()
- func (c BaseCollection) Sum(key ...string) decimal.Decimal
- func (c BaseCollection) Take(num int) Collection
- func (c BaseCollection) Tap()
- func (c BaseCollection) Times()
- func (c BaseCollection) ToJson() string
- func (c BaseCollection) ToMap() map[string]interface{}
- func (c BaseCollection) ToMapArray() []map[string]interface{}
- func (c BaseCollection) ToNumberArray() []decimal.Decimal
- func (c BaseCollection) ToStringArray() []string
- func (c BaseCollection) Transform()
- func (c BaseCollection) Union()
- func (c BaseCollection) Unique()
- func (c BaseCollection) UniqueStrict()
- func (c BaseCollection) Unless()
- func (c BaseCollection) UnlessEmpty()
- func (c BaseCollection) UnlessNotEmpty()
- func (c BaseCollection) Unwrap()
- func (c BaseCollection) Value() interface{}
- func (c BaseCollection) Values()
- func (c BaseCollection) When()
- func (c BaseCollection) WhenEmpty()
- func (c BaseCollection) WhenNotEmpty()
- func (c BaseCollection) Where(key string, value interface{}) Collection
- func (c BaseCollection) WhereBetween()
- func (c BaseCollection) WhereIn()
- func (c BaseCollection) WhereInStrict()
- func (c BaseCollection) WhereInstanceOf()
- func (c BaseCollection) WhereNotBetween()
- func (c BaseCollection) WhereNotIn()
- func (c BaseCollection) WhereNotInStrict()
- func (c BaseCollection) WhereStrict()
- func (c BaseCollection) Wrap()
- func (c BaseCollection) Zip()
- type Collection
- type MapArrayCollection
- func (c MapArrayCollection) All() []interface{}
- func (c MapArrayCollection) Chunk(num int) MultiDimensionalArrayCollection
- func (c MapArrayCollection) Concat(value interface{}) Collection
- func (c MapArrayCollection) Contains(value interface{}, callback ...interface{}) bool
- func (c MapArrayCollection) ContainsStrict(value interface{}, callback ...interface{}) bool
- func (c MapArrayCollection) CrossJoin(array ...[]interface{}) MultiDimensionalArrayCollection
- func (c MapArrayCollection) Dd()
- func (c MapArrayCollection) Dump()
- func (c MapArrayCollection) Max(key ...string) decimal.Decimal
- func (c MapArrayCollection) Min(key ...string) decimal.Decimal
- func (c MapArrayCollection) Mode(key ...string) []interface{}
- func (c MapArrayCollection) Only(keys []string) Collection
- func (c MapArrayCollection) Pluck(key string) Collection
- func (c MapArrayCollection) Prepend(values ...interface{}) Collection
- func (c MapArrayCollection) Splice(index ...int) Collection
- func (c MapArrayCollection) Sum(key ...string) decimal.Decimal
- func (c MapArrayCollection) Take(num int) Collection
- func (c MapArrayCollection) ToMapArray() []map[string]interface{}
- func (c MapArrayCollection) Value() interface{}
- type MapCollection
- func (c MapCollection) Contains(value interface{}, callback ...interface{}) bool
- func (c MapCollection) ContainsStrict(value interface{}, callback ...interface{}) bool
- func (c MapCollection) Dd()
- func (c MapCollection) Dump()
- func (c MapCollection) Only(keys []string) Collection
- func (c MapCollection) Prepend(values ...interface{}) Collection
- func (c MapCollection) ToMap() map[string]interface{}
- type MultiDimensionalArrayCollection
- type NumberArrayCollection
- func (c NumberArrayCollection) All() []interface{}
- func (c NumberArrayCollection) Chunk(num int) MultiDimensionalArrayCollection
- func (c NumberArrayCollection) Concat(value interface{}) Collection
- func (c NumberArrayCollection) Contains(value interface{}, callback ...interface{}) bool
- func (c NumberArrayCollection) ContainsStrict(value interface{}, callback ...interface{}) bool
- func (c NumberArrayCollection) CountBy(callback ...interface{}) map[interface{}]int
- func (c NumberArrayCollection) CrossJoin(array ...[]interface{}) MultiDimensionalArrayCollection
- func (c NumberArrayCollection) Dd()
- func (c NumberArrayCollection) Dump()
- func (c NumberArrayCollection) Max(key ...string) decimal.Decimal
- func (c NumberArrayCollection) Min(key ...string) decimal.Decimal
- func (c NumberArrayCollection) Mode(key ...string) []interface{}
- func (c NumberArrayCollection) Prepend(values ...interface{}) Collection
- func (c NumberArrayCollection) Splice(index ...int) Collection
- func (c NumberArrayCollection) Sum(key ...string) decimal.Decimal
- func (c NumberArrayCollection) Take(num int) Collection
- func (c NumberArrayCollection) ToNumberArray() []decimal.Decimal
- type StringArrayCollection
- func (c StringArrayCollection) All() []interface{}
- func (c StringArrayCollection) Chunk(num int) MultiDimensionalArrayCollection
- func (c StringArrayCollection) Combine(value []interface{}) Collection
- func (c StringArrayCollection) Concat(value interface{}) Collection
- func (c StringArrayCollection) Contains(value interface{}, callback ...interface{}) bool
- func (c StringArrayCollection) ContainsStrict(value interface{}, callback ...interface{}) bool
- func (c StringArrayCollection) CountBy(callback ...interface{}) map[interface{}]int
- func (c StringArrayCollection) CrossJoin(array ...[]interface{}) MultiDimensionalArrayCollection
- func (c StringArrayCollection) Dd()
- func (c StringArrayCollection) Dump()
- func (c StringArrayCollection) Join(delimiter string) string
- func (c StringArrayCollection) Mode(key ...string) []interface{}
- func (c StringArrayCollection) Prepend(values ...interface{}) Collection
- func (c StringArrayCollection) Splice(index ...int) Collection
- func (c StringArrayCollection) Take(num int) Collection
- func (c StringArrayCollection) ToStringArray() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseCollection ¶
type BaseCollection struct {
// contains filtered or unexported fields
}
func (BaseCollection) All ¶
func (c BaseCollection) All() []interface{}
func (BaseCollection) Average ¶
func (c BaseCollection) Average()
func (BaseCollection) Chunk ¶
func (c BaseCollection) Chunk(num int) MultiDimensionalArrayCollection
func (BaseCollection) Collapse ¶
func (c BaseCollection) Collapse() Collection
func (BaseCollection) Combine ¶
func (c BaseCollection) Combine(value []interface{}) Collection
func (BaseCollection) Concat ¶
func (c BaseCollection) Concat(value interface{}) Collection
func (BaseCollection) Contains ¶
func (c BaseCollection) Contains(value interface{}, callback ...interface{}) bool
func (BaseCollection) ContainsStrict ¶
func (c BaseCollection) ContainsStrict(value interface{}, callback ...interface{}) bool
func (BaseCollection) Count ¶
func (c BaseCollection) Count() int
func (BaseCollection) CountBy ¶
func (c BaseCollection) CountBy(callback ...interface{}) map[interface{}]int
func (BaseCollection) CrossJoin ¶
func (c BaseCollection) CrossJoin(array ...[]interface{}) MultiDimensionalArrayCollection
func (BaseCollection) Dd ¶
func (c BaseCollection) Dd()
func (BaseCollection) Diff ¶
func (c BaseCollection) Diff()
func (BaseCollection) DiffAssoc ¶
func (c BaseCollection) DiffAssoc()
func (BaseCollection) DiffKeys ¶
func (c BaseCollection) DiffKeys()
func (BaseCollection) Dump ¶
func (c BaseCollection) Dump()
func (BaseCollection) Each ¶
func (c BaseCollection) Each()
func (BaseCollection) EachSpread ¶
func (c BaseCollection) EachSpread()
func (BaseCollection) Every ¶
func (c BaseCollection) Every()
func (BaseCollection) Except ¶
func (c BaseCollection) Except()
func (BaseCollection) Filter ¶
func (c BaseCollection) Filter()
func (BaseCollection) First ¶
func (c BaseCollection) First()
func (BaseCollection) FirstWhere ¶
func (c BaseCollection) FirstWhere()
func (BaseCollection) FlatMap ¶
func (c BaseCollection) FlatMap()
func (BaseCollection) Flatten ¶
func (c BaseCollection) Flatten()
func (BaseCollection) Flip ¶
func (c BaseCollection) Flip()
func (BaseCollection) ForPage ¶
func (c BaseCollection) ForPage()
func (BaseCollection) Forget ¶
func (c BaseCollection) Forget()
func (BaseCollection) Get ¶
func (c BaseCollection) Get()
func (BaseCollection) GroupBy ¶
func (c BaseCollection) GroupBy()
func (BaseCollection) Has ¶
func (c BaseCollection) Has()
func (BaseCollection) Implode ¶
func (c BaseCollection) Implode()
func (BaseCollection) Intersect ¶
func (c BaseCollection) Intersect()
func (BaseCollection) IntersectByKeys ¶
func (c BaseCollection) IntersectByKeys()
func (BaseCollection) IsEmpty ¶
func (c BaseCollection) IsEmpty()
func (BaseCollection) IsNotEmpty ¶
func (c BaseCollection) IsNotEmpty()
func (BaseCollection) Join ¶
func (c BaseCollection) Join(delimiter string) string
func (BaseCollection) KeyBy ¶
func (c BaseCollection) KeyBy()
func (BaseCollection) Keys ¶
func (c BaseCollection) Keys()
func (BaseCollection) Last ¶
func (c BaseCollection) Last()
func (BaseCollection) Macro ¶
func (c BaseCollection) Macro()
func (BaseCollection) Make ¶
func (c BaseCollection) Make()
func (BaseCollection) Map ¶
func (c BaseCollection) Map()
func (BaseCollection) MapInto ¶
func (c BaseCollection) MapInto()
func (BaseCollection) MapSpread ¶
func (c BaseCollection) MapSpread()
func (BaseCollection) MapToGroups ¶
func (c BaseCollection) MapToGroups()
func (BaseCollection) MapWithKeys ¶
func (c BaseCollection) MapWithKeys()
func (BaseCollection) Median ¶
func (c BaseCollection) Median()
func (BaseCollection) Merge ¶
func (c BaseCollection) Merge()
func (BaseCollection) Mode ¶
func (c BaseCollection) Mode(key ...string) []interface{}
func (BaseCollection) Nth ¶
func (c BaseCollection) Nth()
func (BaseCollection) Only ¶
func (c BaseCollection) Only(keys []string) Collection
func (BaseCollection) Pad ¶
func (c BaseCollection) Pad()
func (BaseCollection) Partition ¶
func (c BaseCollection) Partition()
func (BaseCollection) Pipe ¶
func (c BaseCollection) Pipe()
func (BaseCollection) Pluck ¶
func (c BaseCollection) Pluck(key string) Collection
func (BaseCollection) Pop ¶
func (c BaseCollection) Pop()
func (BaseCollection) Prepend ¶
func (c BaseCollection) Prepend(values ...interface{}) Collection
func (BaseCollection) Pull ¶
func (c BaseCollection) Pull(key interface{}) Collection
func (BaseCollection) Push ¶
func (c BaseCollection) Push()
func (BaseCollection) Put ¶
func (c BaseCollection) Put(key string, value interface{}) Collection
func (BaseCollection) Random ¶
func (c BaseCollection) Random()
func (BaseCollection) Reduce ¶
func (c BaseCollection) Reduce()
func (BaseCollection) Reject ¶
func (c BaseCollection) Reject()
func (BaseCollection) Reverse ¶
func (c BaseCollection) Reverse()
func (BaseCollection) Search ¶
func (c BaseCollection) Search()
func (BaseCollection) Shift ¶
func (c BaseCollection) Shift()
func (BaseCollection) Shuffle ¶
func (c BaseCollection) Shuffle()
func (BaseCollection) Slice ¶
func (c BaseCollection) Slice()
func (BaseCollection) Some ¶
func (c BaseCollection) Some()
func (BaseCollection) Sort ¶
func (c BaseCollection) Sort()
func (BaseCollection) SortBy ¶
func (c BaseCollection) SortBy(key string) Collection
func (BaseCollection) SortByDesc ¶
func (c BaseCollection) SortByDesc()
func (BaseCollection) SortKeys ¶
func (c BaseCollection) SortKeys()
func (BaseCollection) SortKeysDesc ¶
func (c BaseCollection) SortKeysDesc()
func (BaseCollection) Splice ¶
func (c BaseCollection) Splice(index ...int) Collection
func (BaseCollection) Split ¶
func (c BaseCollection) Split()
func (BaseCollection) Take ¶
func (c BaseCollection) Take(num int) Collection
func (BaseCollection) Tap ¶
func (c BaseCollection) Tap()
func (BaseCollection) Times ¶
func (c BaseCollection) Times()
func (BaseCollection) ToJson ¶
func (c BaseCollection) ToJson() string
func (BaseCollection) ToMap ¶
func (c BaseCollection) ToMap() map[string]interface{}
func (BaseCollection) ToMapArray ¶
func (c BaseCollection) ToMapArray() []map[string]interface{}
func (BaseCollection) ToNumberArray ¶
func (c BaseCollection) ToNumberArray() []decimal.Decimal
func (BaseCollection) ToStringArray ¶
func (c BaseCollection) ToStringArray() []string
func (BaseCollection) Transform ¶
func (c BaseCollection) Transform()
func (BaseCollection) Union ¶
func (c BaseCollection) Union()
func (BaseCollection) Unique ¶
func (c BaseCollection) Unique()
func (BaseCollection) UniqueStrict ¶
func (c BaseCollection) UniqueStrict()
func (BaseCollection) Unless ¶
func (c BaseCollection) Unless()
func (BaseCollection) UnlessEmpty ¶
func (c BaseCollection) UnlessEmpty()
func (BaseCollection) UnlessNotEmpty ¶
func (c BaseCollection) UnlessNotEmpty()
func (BaseCollection) Unwrap ¶
func (c BaseCollection) Unwrap()
func (BaseCollection) Value ¶
func (c BaseCollection) Value() interface{}
func (BaseCollection) Values ¶
func (c BaseCollection) Values()
func (BaseCollection) When ¶
func (c BaseCollection) When()
func (BaseCollection) WhenEmpty ¶
func (c BaseCollection) WhenEmpty()
func (BaseCollection) WhenNotEmpty ¶
func (c BaseCollection) WhenNotEmpty()
func (BaseCollection) Where ¶
func (c BaseCollection) Where(key string, value interface{}) Collection
func (BaseCollection) WhereBetween ¶
func (c BaseCollection) WhereBetween()
func (BaseCollection) WhereIn ¶
func (c BaseCollection) WhereIn()
func (BaseCollection) WhereInStrict ¶
func (c BaseCollection) WhereInStrict()
func (BaseCollection) WhereInstanceOf ¶
func (c BaseCollection) WhereInstanceOf()
func (BaseCollection) WhereNotBetween ¶
func (c BaseCollection) WhereNotBetween()
func (BaseCollection) WhereNotIn ¶
func (c BaseCollection) WhereNotIn()
func (BaseCollection) WhereNotInStrict ¶
func (c BaseCollection) WhereNotInStrict()
func (BaseCollection) WhereStrict ¶
func (c BaseCollection) WhereStrict()
func (BaseCollection) Wrap ¶
func (c BaseCollection) Wrap()
func (BaseCollection) Zip ¶
func (c BaseCollection) Zip()
type Collection ¶
type Collection interface {
Value() interface{}
// reference: https://laravel.com/docs/5.8/collections#method-all
All() []interface{}
// reference: https://laravel.com/docs/5.8/collections#method-avg
Avg(key ...string) decimal.Decimal
// reference: https://laravel.com/docs/5.8/collections#method-sum
Sum(key ...string) decimal.Decimal
// reference: https://laravel.com/docs/5.8/collections#method-min
Min(key ...string) decimal.Decimal
// reference: https://laravel.com/docs/5.8/collections#method-max
Max(key ...string) decimal.Decimal
// reference: https://laravel.com/docs/5.8/collections#method-join
Join(delimiter string) string
// reference: https://laravel.com/docs/5.8/collections#method-combine
Combine(value []interface{}) Collection
// reference: https://laravel.com/docs/5.8/collections#method-count
Count() int
// reference: https://laravel.com/docs/5.8/collections#method-pluck
Pluck(key string) Collection
// reference: https://laravel.com/docs/5.8/collections#method-mode
Mode(key ...string) []interface{}
// reference: https://laravel.com/docs/5.8/collections#method-only
Only(keys []string) Collection
// reference: https://laravel.com/docs/5.8/collections#method-prepend
Prepend(values ...interface{}) Collection
// reference: https://laravel.com/docs/5.8/collections#method-pull
Pull(key interface{}) Collection
// reference: https://laravel.com/docs/5.8/collections#method-put
Put(key string, value interface{}) Collection
// reference: https://laravel.com/docs/5.8/collections#method-sortby
SortBy(key string) Collection
// reference: https://laravel.com/docs/5.8/collections#method-take
Take(num int) Collection
// reference: https://laravel.com/docs/5.8/collections#method-average
Average()
// reference: https://laravel.com/docs/5.8/collections#method-chunk
Chunk(num int) MultiDimensionalArrayCollection
// reference: https://laravel.com/docs/5.8/collections#method-collapse
Collapse() Collection
// reference: https://laravel.com/docs/5.8/collections#method-concat
Concat(value interface{}) Collection
// reference: https://laravel.com/docs/5.8/collections#method-contains
Contains(value interface{}, callback ...interface{}) bool
// reference: https://laravel.com/docs/5.8/collections#method-containsStrict
ContainsStrict(value interface{}, callback ...interface{}) bool
// reference: https://laravel.com/docs/5.8/collections#method-countBy
CountBy(callback ...interface{}) map[interface{}]int
// reference: https://laravel.com/docs/5.8/collections#method-crossJoin
CrossJoin(array ...[]interface{}) MultiDimensionalArrayCollection
// reference: https://laravel.com/docs/5.8/collections#method-dd
Dd()
// reference: https://laravel.com/docs/5.8/collections#method-diff
Diff()
// reference: https://laravel.com/docs/5.8/collections#method-diffAssoc
DiffAssoc()
// reference: https://laravel.com/docs/5.8/collections#method-diffKeys
DiffKeys()
// reference: https://laravel.com/docs/5.8/collections#method-dump
Dump()
// reference: https://laravel.com/docs/5.8/collections#method-each
Each()
// reference: https://laravel.com/docs/5.8/collections#method-eachSpread
EachSpread()
// reference: https://laravel.com/docs/5.8/collections#method-every
Every()
// reference: https://laravel.com/docs/5.8/collections#method-except
Except()
// reference: https://laravel.com/docs/5.8/collections#method-filter
Filter()
// reference: https://laravel.com/docs/5.8/collections#method-first
First()
// reference: https://laravel.com/docs/5.8/collections#method-firstWhere
FirstWhere()
// reference: https://laravel.com/docs/5.8/collections#method-flatMap
FlatMap()
// reference: https://laravel.com/docs/5.8/collections#method-flatten
Flatten()
// reference: https://laravel.com/docs/5.8/collections#method-flip
Flip()
// reference: https://laravel.com/docs/5.8/collections#method-forget
Forget()
// reference: https://laravel.com/docs/5.8/collections#method-forPage
ForPage()
// reference: https://laravel.com/docs/5.8/collections#method-get
Get()
// reference: https://laravel.com/docs/5.8/collections#method-groupBy
GroupBy()
// reference: https://laravel.com/docs/5.8/collections#method-has
Has()
// reference: https://laravel.com/docs/5.8/collections#method-implode
Implode()
// reference: https://laravel.com/docs/5.8/collections#method-intersect
Intersect()
// reference: https://laravel.com/docs/5.8/collections#method-intersectByKeys
IntersectByKeys()
// reference: https://laravel.com/docs/5.8/collections#method-isEmpty
IsEmpty()
// reference: https://laravel.com/docs/5.8/collections#method-isNotEmpty
IsNotEmpty()
// reference: https://laravel.com/docs/5.8/collections#method-keyBy
KeyBy()
// reference: https://laravel.com/docs/5.8/collections#method-keys
Keys()
// reference: https://laravel.com/docs/5.8/collections#method-last
Last()
// reference: https://laravel.com/docs/5.8/collections#method-macro
Macro()
// reference: https://laravel.com/docs/5.8/collections#method-make
Make()
// reference: https://laravel.com/docs/5.8/collections#method-map
Map()
// reference: https://laravel.com/docs/5.8/collections#method-mapInto
MapInto()
// reference: https://laravel.com/docs/5.8/collections#method-mapSpread
MapSpread()
// reference: https://laravel.com/docs/5.8/collections#method-mapToGroups
MapToGroups()
// reference: https://laravel.com/docs/5.8/collections#method-mapWithKeys
MapWithKeys()
// reference: https://laravel.com/docs/5.8/collections#method-median
Median()
// reference: https://laravel.com/docs/5.8/collections#method-merge
Merge()
// reference: https://laravel.com/docs/5.8/collections#method-nth
Nth()
// reference: https://laravel.com/docs/5.8/collections#method-pad
Pad()
// reference: https://laravel.com/docs/5.8/collections#method-partition
Partition()
// reference: https://laravel.com/docs/5.8/collections#method-pipe
Pipe()
// reference: https://laravel.com/docs/5.8/collections#method-pop
Pop()
// reference: https://laravel.com/docs/5.8/collections#method-push
Push()
// reference: https://laravel.com/docs/5.8/collections#method-random
Random()
// reference: https://laravel.com/docs/5.8/collections#method-reduce
Reduce()
// reference: https://laravel.com/docs/5.8/collections#method-reject
Reject()
// reference: https://laravel.com/docs/5.8/collections#method-reverse
Reverse()
// reference: https://laravel.com/docs/5.8/collections#method-search
Search()
// reference: https://laravel.com/docs/5.8/collections#method-shift
Shift()
// reference: https://laravel.com/docs/5.8/collections#method-shuffle
Shuffle()
// reference: https://laravel.com/docs/5.8/collections#method-slice
Slice()
// reference: https://laravel.com/docs/5.8/collections#method-some
Some()
// reference: https://laravel.com/docs/5.8/collections#method-sort
Sort()
// reference: https://laravel.com/docs/5.8/collections#method-sortByDesc
SortByDesc()
// reference: https://laravel.com/docs/5.8/collections#method-sortKeys
SortKeys()
// reference: https://laravel.com/docs/5.8/collections#method-sortKeysDesc
SortKeysDesc()
// reference: https://laravel.com/docs/5.8/collections#method-splice
Splice(index ...int) Collection
// reference: https://laravel.com/docs/5.8/collections#method-split
Split()
// reference: https://laravel.com/docs/5.8/collections#method-tap
Tap()
// reference: https://laravel.com/docs/5.8/collections#method-times
Times()
// reference: https://laravel.com/docs/5.8/collections#method-transform
Transform()
// reference: https://laravel.com/docs/5.8/collections#method-union
Union()
// reference: https://laravel.com/docs/5.8/collections#method-unique
Unique()
// reference: https://laravel.com/docs/5.8/collections#method-uniqueStrict
UniqueStrict()
// reference: https://laravel.com/docs/5.8/collections#method-unless
Unless()
// reference: https://laravel.com/docs/5.8/collections#method-unlessEmpty
UnlessEmpty()
// reference: https://laravel.com/docs/5.8/collections#method-unlessNotEmpty
UnlessNotEmpty()
// reference: https://laravel.com/docs/5.8/collections#method-unwrap
Unwrap()
// reference: https://laravel.com/docs/5.8/collections#method-values
Values()
// reference: https://laravel.com/docs/5.8/collections#method-when
When()
// reference: https://laravel.com/docs/5.8/collections#method-whenEmpty
WhenEmpty()
// reference: https://laravel.com/docs/5.8/collections#method-whenNotEmpty
WhenNotEmpty()
// reference: https://laravel.com/docs/5.8/collections#method-whereStrict
WhereStrict()
// reference: https://laravel.com/docs/5.8/collections#method-whereBetween
WhereBetween()
// reference: https://laravel.com/docs/5.8/collections#method-whereIn
WhereIn()
// reference: https://laravel.com/docs/5.8/collections#method-whereInStrict
WhereInStrict()
// reference: https://laravel.com/docs/5.8/collections#method-whereInstanceOf
WhereInstanceOf()
// reference: https://laravel.com/docs/5.8/collections#method-whereNotBetween
WhereNotBetween()
// reference: https://laravel.com/docs/5.8/collections#method-whereNotIn
WhereNotIn()
// reference: https://laravel.com/docs/5.8/collections#method-whereNotInStrict
WhereNotInStrict()
// reference: https://laravel.com/docs/5.8/collections#method-wrap
Wrap()
// reference: https://laravel.com/docs/5.8/collections#method-zip
Zip()
ToJson() string
ToNumberArray() []decimal.Decimal
ToStringArray() []string
ToMap() map[string]interface{}
ToMapArray() []map[string]interface{}
Where(key string, value interface{}) Collection
}
func Collect ¶
func Collect(src interface{}) Collection
type MapArrayCollection ¶
type MapArrayCollection struct {
BaseCollection
// contains filtered or unexported fields
}
func (MapArrayCollection) All ¶
func (c MapArrayCollection) All() []interface{}
func (MapArrayCollection) Chunk ¶
func (c MapArrayCollection) Chunk(num int) MultiDimensionalArrayCollection
func (MapArrayCollection) Concat ¶
func (c MapArrayCollection) Concat(value interface{}) Collection
func (MapArrayCollection) Contains ¶
func (c MapArrayCollection) Contains(value interface{}, callback ...interface{}) bool
func (MapArrayCollection) ContainsStrict ¶
func (c MapArrayCollection) ContainsStrict(value interface{}, callback ...interface{}) bool
func (MapArrayCollection) CrossJoin ¶
func (c MapArrayCollection) CrossJoin(array ...[]interface{}) MultiDimensionalArrayCollection
func (MapArrayCollection) Dd ¶
func (c MapArrayCollection) Dd()
func (MapArrayCollection) Dump ¶
func (c MapArrayCollection) Dump()
func (MapArrayCollection) Mode ¶
func (c MapArrayCollection) Mode(key ...string) []interface{}
func (MapArrayCollection) Only ¶
func (c MapArrayCollection) Only(keys []string) Collection
func (MapArrayCollection) Pluck ¶
func (c MapArrayCollection) Pluck(key string) Collection
func (MapArrayCollection) Prepend ¶
func (c MapArrayCollection) Prepend(values ...interface{}) Collection
func (MapArrayCollection) Splice ¶
func (c MapArrayCollection) Splice(index ...int) Collection
func (MapArrayCollection) Take ¶
func (c MapArrayCollection) Take(num int) Collection
func (MapArrayCollection) ToMapArray ¶
func (c MapArrayCollection) ToMapArray() []map[string]interface{}
func (MapArrayCollection) Value ¶
func (c MapArrayCollection) Value() interface{}
type MapCollection ¶
type MapCollection struct {
BaseCollection
// contains filtered or unexported fields
}
func (MapCollection) Contains ¶
func (c MapCollection) Contains(value interface{}, callback ...interface{}) bool
func (MapCollection) ContainsStrict ¶
func (c MapCollection) ContainsStrict(value interface{}, callback ...interface{}) bool
func (MapCollection) Dd ¶
func (c MapCollection) Dd()
func (MapCollection) Dump ¶
func (c MapCollection) Dump()
func (MapCollection) Only ¶
func (c MapCollection) Only(keys []string) Collection
func (MapCollection) Prepend ¶
func (c MapCollection) Prepend(values ...interface{}) Collection
func (MapCollection) ToMap ¶
func (c MapCollection) ToMap() map[string]interface{}
type MultiDimensionalArrayCollection ¶
type MultiDimensionalArrayCollection struct {
BaseCollection
// contains filtered or unexported fields
}
func (MultiDimensionalArrayCollection) Collapse ¶
func (c MultiDimensionalArrayCollection) Collapse() Collection
func (MultiDimensionalArrayCollection) Concat ¶
func (c MultiDimensionalArrayCollection) Concat(value interface{}) Collection
func (MultiDimensionalArrayCollection) Dd ¶
func (c MultiDimensionalArrayCollection) Dd()
func (MultiDimensionalArrayCollection) Dump ¶
func (c MultiDimensionalArrayCollection) Dump()
type NumberArrayCollection ¶
type NumberArrayCollection struct {
BaseCollection
// contains filtered or unexported fields
}
func (NumberArrayCollection) All ¶
func (c NumberArrayCollection) All() []interface{}
func (NumberArrayCollection) Chunk ¶
func (c NumberArrayCollection) Chunk(num int) MultiDimensionalArrayCollection
func (NumberArrayCollection) Concat ¶
func (c NumberArrayCollection) Concat(value interface{}) Collection
func (NumberArrayCollection) Contains ¶
func (c NumberArrayCollection) Contains(value interface{}, callback ...interface{}) bool
func (NumberArrayCollection) ContainsStrict ¶
func (c NumberArrayCollection) ContainsStrict(value interface{}, callback ...interface{}) bool
func (NumberArrayCollection) CountBy ¶
func (c NumberArrayCollection) CountBy(callback ...interface{}) map[interface{}]int
func (NumberArrayCollection) CrossJoin ¶
func (c NumberArrayCollection) CrossJoin(array ...[]interface{}) MultiDimensionalArrayCollection
func (NumberArrayCollection) Dd ¶
func (c NumberArrayCollection) Dd()
func (NumberArrayCollection) Dump ¶
func (c NumberArrayCollection) Dump()
func (NumberArrayCollection) Max ¶
func (c NumberArrayCollection) Max(key ...string) decimal.Decimal
func (NumberArrayCollection) Min ¶
func (c NumberArrayCollection) Min(key ...string) decimal.Decimal
func (NumberArrayCollection) Mode ¶
func (c NumberArrayCollection) Mode(key ...string) []interface{}
func (NumberArrayCollection) Prepend ¶
func (c NumberArrayCollection) Prepend(values ...interface{}) Collection
func (NumberArrayCollection) Splice ¶
func (c NumberArrayCollection) Splice(index ...int) Collection
func (NumberArrayCollection) Sum ¶
func (c NumberArrayCollection) Sum(key ...string) decimal.Decimal
func (NumberArrayCollection) Take ¶
func (c NumberArrayCollection) Take(num int) Collection
func (NumberArrayCollection) ToNumberArray ¶
func (c NumberArrayCollection) ToNumberArray() []decimal.Decimal
type StringArrayCollection ¶
type StringArrayCollection struct {
BaseCollection
// contains filtered or unexported fields
}
func (StringArrayCollection) All ¶
func (c StringArrayCollection) All() []interface{}
func (StringArrayCollection) Chunk ¶
func (c StringArrayCollection) Chunk(num int) MultiDimensionalArrayCollection
func (StringArrayCollection) Combine ¶
func (c StringArrayCollection) Combine(value []interface{}) Collection
func (StringArrayCollection) Concat ¶
func (c StringArrayCollection) Concat(value interface{}) Collection
func (StringArrayCollection) Contains ¶
func (c StringArrayCollection) Contains(value interface{}, callback ...interface{}) bool
func (StringArrayCollection) ContainsStrict ¶
func (c StringArrayCollection) ContainsStrict(value interface{}, callback ...interface{}) bool
func (StringArrayCollection) CountBy ¶
func (c StringArrayCollection) CountBy(callback ...interface{}) map[interface{}]int
func (StringArrayCollection) CrossJoin ¶
func (c StringArrayCollection) CrossJoin(array ...[]interface{}) MultiDimensionalArrayCollection
func (StringArrayCollection) Dd ¶
func (c StringArrayCollection) Dd()
func (StringArrayCollection) Dump ¶
func (c StringArrayCollection) Dump()
func (StringArrayCollection) Join ¶
func (c StringArrayCollection) Join(delimiter string) string
func (StringArrayCollection) Mode ¶
func (c StringArrayCollection) Mode(key ...string) []interface{}
func (StringArrayCollection) Prepend ¶
func (c StringArrayCollection) Prepend(values ...interface{}) Collection
func (StringArrayCollection) Splice ¶
func (c StringArrayCollection) Splice(index ...int) Collection
func (StringArrayCollection) Take ¶
func (c StringArrayCollection) Take(num int) Collection
func (StringArrayCollection) ToStringArray ¶
func (c StringArrayCollection) ToStringArray() []string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.