The Laravel Companion Second Edition takes you through the helper features, function, classes, utilities and much, much more of the Laravel Framework.
Updated and expanded for Laravel 5.5, you are sure to learn something about the features that are easily overlooked or are easily forgotten. As we progress together through the book, we will export all of the string helper functions, array helpers, Collections, and much, much more through hundreds of practical code examples (including interacting with The Open Movie Database API and gathering weather forecasts).
after
before
ascii
studly
studly_case
Helper Function camel
camel_case
Helper Function snake
snake_case
Helper Function kebab
kebab_case
Helper Function title
title_case
Helper Function slug
str_slug
Helper Function contains
str_contains
Helper Function endsWith
ends_with
Helper Function startsWith
starts_with
Helper Function finish
str_finish
Helper Function start
str_start
Helper Function is
str_is
Helper Function length
limit
str_limit
Helper Function words
lower
upper
plural
plural
Special Cases str_plural
Helper Function singular
singular
Special Cases str_singular
Helper Function random
str_random
Helper Function parseCallback
replaceFirst
str_replace_first
Helper Function replaceLast
str_replace_last
Helper Function substr
ucfirst
__
trans
trans_choice
e
Htmlable
Values FileLoader
Public API load
load
addNamespace
addJsonPath
namespaces
Translator
Public API get
getFromJson
trans
has
hasForLocale
choice
transChoice
Method load
load
vs. Translator load
getLoader
addNamespace
addJsonPath
addLines
parseKey
getSelector
setSelector
setLocale
getLocale
locale
setFallback
getFallback
add
array_add
Helper Function divide
array_divide
Helper Function collapse
array_collapse
Helper Function dot
array_dot
Helper Function except
array_except
Helper Function only
array_only
Helper Function flatten
array_flatten
Helper Function first
$callback
Parameter array_first
Helper Function last
$callback
Parameter array_last
Helper Function has
array_has
Helper Function set
set
to change the entire array $array
With a New Array $array
With a Completely Different Type array_set
Helper Function forget
array_forget
Helper Function get
array_get
Helper Function pull
array_pull
Helper Function pluck
array_pluck
Helper Function where
array_where
Helper Function sort
array_sort
Helper Function isAssoc
accessible
exists
prepend
array_prepend
Helper Function crossJoin
wrap
array_wrap
Helper Function shuffle
random
array_random
Helper Function head
last
app
resolve
auth
policy
app_path
base_path
config_path
database_path
public_path
storage_path
resource_path
cache
cookie
session
abort
abort_if
abort_unless
throw_if
throw_unless
rescue
retry
abort
, abort_if
and abort_unless
redirect
Redirector
Instance Using redirect
back
Redirect
Facade response
Helper Function back
helper function: response
request
view
old
event
broadcast
dispatch
dispatch_now
factory
method_field
validator
bcrypt
encrypt
decrypt
csrf_field
csrf_token
config
env
logger
info
report
action
asset
secure_asset
asset
and secure_asset
url
secure_url
route
elixir
mix
dd
data_get
data_set
data_set
With Objects data_fill
object_get
filled
blank
optional
trait_uses_recursive
class_uses_recursive
value
with
transform
now
today
windows_os
tap
tap
to Proxy Method Calls class_basename
all
toArray
chunk
collapse
contains
contains
Method contains
With Higher Order Messages containsStrict
count
diff
diffAssoc
diffKeys
each
each
With Higher Order Messages filter
filter
With Higher Order Messages first
first
With Higher Order Messages flatten
flip
forPage
chunk
to Achieve Similar Results forget
get
groupBy
groupBy
has
implode
intersect
isEmpty
jsonSerialize
keys
last
map
map
with Higher Order Messages flatMap
flatMap
With Higher Order Messages max
merge
min
pluck
pop
prepend
pull
push
put
random
reduce
reject
reject
With Higher Order Messages reverse
search
shift
shuffle
slice
sort
sortBy
sortBy
Options SORT_NUMERIC
Flag SORT_STRING
Flag SORT_STRING
and SORT_FLAG_CASE
Flags for Case Insensitivity SORT_LOCALE_STRING
Flag SORT_NATURAL
Flag SORT_NATURAL
and SORT_FLAG_CASE
Flags for Case Insensitivity sortBy
With Higher Order Messages sortByDesc
sortByDesc
With Higher Order Messages splice
avg
avg
With Higher Order Messages average
average
With Higher Order Messages sum
sum
With Higher Order Messages take
toJson
toJson
and Deeply Nested Data Structures __toString
Method transform
unique
values
where
zip
combine
every
every
With Higher Order Messages except
only
keyBy
whereIn
crossJoin
dd
dump
eachSpread
intersectByKeys
isNotEmpty
mapInto
mapSpread
mapToDictionary
mapToGroups
mapWithKeys
nth
pad
partition
partition
With Higher Order Messages pipe
split
union
uniqueStrict
unless
when
whereInStrict
whereNotInStrict
whereNotIn
whereStrict
median
mode
concat
tap
toBase
make
wrap
unwrap
times
proxy
MessageProvider
Interface MessageBag
Public API add
all
any
isNotEmpty
count
first
get
getFormat
getMessageBag
getMessages
has
isEmpty
jsonSerialize
keys
merge
setFormat
toArray
toJson
toJson
and Deeply Nested Data Structures __toString
ViewErrorBag
Public API count
any
getBag
getBags
hasBag
put
MessageBag
Messages Fluent
Public API get
getAttributes
toArray
jsonSerialize
toJson
toJson
and Deeply Nested Data Structures Macroable
Public API macro
mixin
hasMacro
__call
Method __callStatic
Method __call
and __callStatic
Blade
Schema
Cookie
Methods Input
Methods Schema
Methods Notification
Methods Queue
Methods Storage
Methods Covering topics from JavaScript to Laravel, and everything in-between since 2012.