Who is This Book For?
- Symbols Used In This Book
- What Was Used to Write This Book?
String Helper Functions
- Immutable Strings
- Returning Part of a String After Another String With
after - Signature
- Example Use
- Returning Part of a String Before Another String With
before - Signature
- Example Use
- Converting Strings to ASCII Encoding With
ascii - Signature
- Example Use
- Formatting Strings With StudlyCapsFormatting With
studly - Signature
- Example Use
- Pascal Case
- Global
studly_caseHelper Function - Formatting Strings With camelCasing With
camel - Signature
- Example Use
- Global
camel_caseHelper Function - Formatting Strings With snake_casing With
snake - Signature
- Example Use
- Global
snake_caseHelper Function - Formatting Strings With kebab-casing With
kebab - Signature
- Example Use
- Global
kebab_caseHelper Function - Formatting Strings With Title Casing Using
title - Signature
- Example Use
- Global
title_caseHelper Function - Generating URL Strings With
slug - Signature
- Example Use
- Global
str_slugHelper Function - Checking if a String Contains Another String With
contains - Signature
- Example Use
- Global
str_containsHelper Function - Checking if a String Ends With Another String With
endsWith - Signature
- Example Use
- Global
ends_withHelper Function - Checking if a String Starts With Another String With
startsWith - Signature
- Example Use
- Global
starts_withHelper Function - Ensuring a String Always Ends With a Particular Value With
finish - Signature
- Example Use
- Global
str_finishHelper Function - Ensuring a String Always Starts With a Certain Value With
start - Signature
- Example Use
- Global
str_startHelper Function - String Pattern Matching With
is - Signature
- Example Use
- Global
str_isHelper Function - Calculating String Length With
length - Signature
- Example Use
str_repeat($input, $multiplier)- Limiting String Length With End Caps (…) With
limit - Signature
- Example Use
- Global
str_limitHelper Function - Limiting the Number of Words In a String With an End Cap (…) With
words - Signature
- Example Use
- Creating Lowercase Variants of Strings With
lower - Signature
- Example Use
- Generating the Upper-Cased Variants of Strings With
upper - Signature
- Example Use
- Pluralizing Strings With
plural - Signature
- Example Use
pluralSpecial Cases- Global
str_pluralHelper Function - Converting Pluralized Strings to Their Singular Counterpart With
singular - Signature
- Example Use
singularSpecial Cases- Global
str_singularHelper Function - Generating Random String Sequences With
random - Signature
- Example Use
- Global
str_randomHelper Function - Parsing Class and Method Names With
parseCallback - Signature
- Example Use
- Replacing the First Occurrence of a String With
replaceFirst - Signature
- Example Use
- Global
str_replace_firstHelper Function - Replacing the Last Occurrence of a String With
replaceLast - Signature
- Example Use
- Global
str_replace_lastHelper Function - Getting Portions of a String With
substr substrEncoding- Signature
- Example Use
- Uppercasing the First Letter of a String With
ucfirst - Signature
- Example Use
- String Translation With
__ - Signature
- Example Use
- Supplying a Locale
- Example Within Blade Templates
- String Translation With
trans - Signature
- Example Use
- Supplying a Locale
- Resolving Translator Instance
- Retrieving Translations Without a Fallback Locale
- String Translation With
trans_choice - Signature
- Example Use
- HTML Encoding With
e - Signature
- Example Use
- Working With
HtmlableValues
String Translation: The File Loader
- PHP Based Language Files
- JSON Based Language Files
The FileLoader Public API
- Loading Language Files With
load - Signature
- Example Use
- Loading JSON Language Files Using
load - Special Parameters
- Adding Translation Namespaces With
addNamespace - Signature
- Example Use
- Adding JSON Language Files With
addJsonPath - Signature
- Example Use
- Retrieving Namespace Information With
namespaces - Signature
- Example Use
String Translation: The Translator Public API
- Retrieving Translation Line Text With
get - Signature
- Example Use
- Retrieving Translation Lines
- Providing Replacements for Translation Lines
- Specifying a Locale
- Suppressing Fallback Local Translation Lines
- Retrieving Translation Lines from JSON Language Files With
getFromJson - Signature
- Example Use
- Translating Strings With
trans - Signature
- Example Use
- Determining if a Translation Line Exists With
has - Signature
- Example Use
- Determining if a Locale Has a Translation Line With
hasForLocale - Signature
- Example Use
- Translating Strings Based on a Number of Items With
choice - Signature
- Example Use
- Determining the Count of Items in a Collection
- Specifying the Locale
- The
transChoiceMethod - Loading Translation Text Lines With
load - Signature
- Loader
loadvs. Translatorload - Retrieving the Translation Loader With
getLoader - Signature
- Adding Translation Namespaces With
addNamespace - Signature
- Adding JSON Translation Files With
addJsonPath - Signature
- Adding Arbitrary Translation Lines With
addLines - Signature
- Example Use
- Parsing Translation Keys With
parseKey - Signature
- Example Use
- Working with Translator Message Selectors
- Retrieving a Message Selector Instance With
getSelector - Setting the Message Selector Instance With
setSelector - Working with Translator Locales
- Setting the Application Locale With
setLocale - Getting the Application Locale With
getLocale - Getting the Application Locale With
locale - Setting the Fallback Locale With
setFallback - Getting the Fallback Locale With
getFallback
String Translation: Pluralization Syntax
- Handling Specific Numbers
- Examples of Specific Numbers
- Ranges
- Creating a Range Between Two Numbers
- Creating Negative Ranges
Array Helper Functions
- Immutable Arrays
- Array Dot Notation
- Adding Elements to the Arrays With
add - Signature
- Example Use
- Global
array_addHelper Function - Splitting an Array Into It’s Keys and Values With
divide - Signature
- Example Use
- Global
array_divideHelper Function - Collapsing a Multi-Dimensional Array to a Single Level With
collapse - Signature
- Example Use
- Collapsing Collections
- Global
array_collapseHelper Function - Representing Multi-Dimensional Arrays in Dot Notation With
dot - Signature
- Example Use
- Global
array_dotHelper Function - Excluding Items From an Array With
except - Signature
- Example Use
- Global
array_exceptHelper Function - Filtering Array Elements With
only - Signature
- Example Use
- Global
array_onlyHelper Function - Reducing a Multi-Dimensional Array to a Single Dimension Losing Keys With
flatten - Signature Use
- Example Use
- Global
array_flattenHelper Function - Finding the First Occurrence of an Element Matching a Condition With
first - Signature
- Example Use
- Optional
$callbackParameter - Global
array_firstHelper Function - Finding the Last Occurrence of an Element Matching a Condition With
last - Signature
- Example Use
- Optional
$callbackParameter - Global
array_lastHelper Function - Checking if an Array Contains an Element With
has - Signature
- Example Use
- Global
array_hasHelper Function - Adding or Setting New Array Element Values With
set - Mutable Function
- Signature
- Example Use
- Using
setto change the entire array - Replacing the
$arrayWith a New Array - Replacing the
$arrayWith a Completely Different Type - Global
array_setHelper Function - Removing Elements From an Array With
forget - Signature
- Example Use
- Global
array_forgetHelper Function - Retrieving Elements from an Array With
get - Signature
- Example Use
- Global
array_getHelper Function - Retrieving, and Removing an Element From an Array With
pull - Signature
- Example Use
- Global
array_pullHelper Function - Retrieving Nested Array Values With
pluck - Signature
- Example Use
- Returning an array with a key/value pair
- Working With Nested Arrays or Objects
- Global
array_pluckHelper Function - Conditionally Retrieving Array Values With
where - Signature
- Example Use
- Anonymous Functions and Variable Scope
- Global
array_whereHelper Function - Sorting Arrays With
sort - Signature
- Example Use
- Array Sort Considerations
- Global
array_sortHelper Function - Checking if an Array is an Associative Array With
isAssoc - Signature
- Example Use
- Determining if an Object is Array Accessible With
accessible - Signature
- Example Use
- Determining if an Array Contains an Element With
exists - Signature
- Example Use
- Adding a New Element to the Beginning of an Array With
prepend - Signature
- Example Use
- Global
array_prependHelper Function - Creating Combinations of Elements With
crossJoin - Signature
- Example Use
- Ensuring a Value is an Array With
wrap - Signature
- Example Use
- Global
array_wrapHelper Function - Randomizing Element Order With
shuffle - Signature
- Example Use
- Retrieving Random Elements from an Array With
random - Signature
- Example Use
- Global
array_randomHelper Function - Getting the First Element of an Array With
head - Signature
- Example Use
- Getting the Last Element of an Array With
last - Signature
- Example Use
Application and User Flow Helper Functions
- Accessing the Service Container With
app - Signature
- Example Use
- Resolving Concrete Implementations From the Service Container With
resolve - Signature
- Example Use
- Accessing the Authentication Manager With
auth - Signature
- Example Use
- Resolving Authentication Policies With
policy - Signature
- Example Use
- Generating Paths Relative to the Application Root With
app_path - Signature
- Example Use
- Generating Paths Relative to the Application Installation Directory With
base_path - Signature
- Example Use
- Generating Paths Relative to the Configuration Directory With
config_path - Signature
- Example Use
- Generating Paths Relative to the Database Directory With
database_path - Signature
- Example Use
- Generating Paths Relative to the Public Directory With
public_path - Signature
- Example Use
- Generating Paths Relative to the Storage Directory With
storage_path - Signature
- Example Use
- Generating Paths Relative to the Resource Directory With
resource_path - Signature
- Example Use
- Accessing the Cache System With
cache - Signature
- Example Use
- Managing HTTP Cookies With
cookie - Signature
- Example Use
- Accessing and Manipulating Session Data With
session - Signature
- Returning an Instance of “\Illuminate\Session\SessionManager”
- Setting a Session Value
- Retrieving a Session Value
- Throwing HTTP Exceptions With
abort - Signature
- Example Use
- Conditionally Throwing HTTP Exceptions With
abort_if - Signature
- Example Use
- Conditionally Throwing HTTP Exceptions With
abort_unless - Signature
- Example Use
- Conditionally Throwing Exceptions With
throw_if - Signature
- Example Use
- Conditionally Throwing Exceptions With
throw_unless - Signature
- Example Use
- Recover From Possible Exceptions With
rescue - Signature
- Example Use
- Attempt an Error-Prone Operation a Number of Times With
retry - Signature
- Example Use
- Comparing
abort,abort_ifandabort_unless - Performing HTTP Redirects With
redirect - Signature
- Accessing the
RedirectorInstance Usingredirect - Redirecting to a Given Path
- Redirecting to Secure URLs
- Redirecting to Custom URLs
- Changing the HTTP Status Code
- Supplying Additional Headers
- Redirecting Users to the Previous Page With
back - Signature
- Example Use
- Returning a Redirect Response Using the
RedirectFacade - Returning a Redirect Response Using the
responseHelper Function - Returning a redirect response using the
backhelper function: - Changing the HTTP Status Code
- Supplying Additional Headers
- Accessing and Sending HTTP Responses With
response - Signature
- Example Use
- Changing the HTTP Status Code
- Supplying Additional Headers
- Accessing HTTP Request Details With
request - Signature
- Example Use
- Rendering Views to Strings and Returning View Responses With
view - Signature
- Example Use
- Rendering a View to a String
- Accessing Session Input Data With
old - Signature
- Example Use
- Triggering Events With
event - Signature
- Example Use
- Notifying Server Side Clients of Events With
broadcast - Signature
- Example Use
- Dispatching Queued Jobs With
dispatch - Signature
- Example Use
- Dispatching Queued Jobs Immediately With
dispatch_now - Signature
- Example Use
- Creating Eloquent Models for Testing With
factory - Signature
- Example Use
- Generating an HTML Field for HTTP Verbs With
method_field - Signature
- Example Use
- Accessing Validation Features With
validator - Signature
- Example Use
Configuration, Environment, Security and Logging Helper Functions
- Hashing Strings With
bcrypt - Signature
- Example Use
- Available Options
- Encrypting Strings With
encrypt - Signature
- Example Use
- Decrypting Strings With
decrypt - Signature
- Example Use
- Generating CSRF Hidden HTML Fields With
csrf_field - Signature
- Example Use
- Generating CSRF Session Tokens With
csrf_token - Signature
- Example Use
- Accessing and Manipulating Configuration Values With
config - Signature
- Example Use
- Setting Configuration Values
- Retrieving Configuration Values
- Retrieving Environment Variables With
env - Signature
- Example Use
- Accessing the Logging Features With
logger - Signature
- Example Use
- Logging Informative Messages With
info - Signature
- Example Use
- Reporting Application Exceptions With
report - Signature
- Example Use
URL Generation Helper Functions
- Generating URLs to Controller Actions With
action - Signature
- Example Use
- Relative URLs
- Generating URLs to Assets With
asset - Signature
- Example Use
- Generating Secure URLs to Assets With
secure_asset - Signature
- Example Use
- Notes on
assetandsecure_asset - Generating URLs With
url - Signature
- Example Use
- Generating Secure URLs
- Generating HTTPS URLs With
secure_url - Signature
- Example Use
- Generating URLs to Named Routes With
route - Signature
- Example Use
- Generating Public URLs to Elixir Compiled Assets With
elixir - Signature
- Example Use
- Generating Public URLs to Mix Compiled Assets With
mix - Signature
- Example Use
- Changing the Manifest Directory
Miscellaneous Helper Functions
- Displaying Variable Data and Stopping Script Execution for Debugging With
dd - Signature
- Example Use
- Getting Array or Object Values With
data_get - Signature
- Example Use
- Setting Array or Object Values With
data_set - Signature
- Example Use
- Using
data_setWith Objects - Setting Data on Objects Without Overwriting Existing Data With
data_fill - Signature
- Example Use
- Retrieving Object Values With
object_get - Signature
- Example Use
- Checking if a Variable Holds a Value With
filled - Signature
- Example Use
- Determining if a Variable Holds a Value With
blank - Signature
- Example Use
- Provide Default Values for Object Properties With
optional - Signature
- Example Use
- Determining Which Traits a Class Uses With
trait_uses_recursive - Signature
- Example Use
- Finding What Traits a Class Uses With
class_uses_recursive - Signature
- Example Use
- Retrieving the Default Value of a Given Variable With
value - Signature
- Example Use
- Returning In-line Access to a Variable With
with - Signature
- Example Use
- Alternative to the
withFunction - Conditionally Transforming/Changing Values With
transform - Signature
- Example Use
- Getting the Current Date and Time With
now - Signature
- Example Use
- Get the Current Date With
today - Signature
- Example Use
- Checking if the Script is Executing on a Windows Machine With
windows_os - Signature
- Example Use
- Execute a Callback on a Given Value While Chaining the Original Value With
tap - Signature
- Example Use
- Tap Function Closure Arguments
- Using
tapto Proxy Method Calls - Getting the Class Name for an Object Instance With
class_basename - Signature
- Example Use
Collection Basics
- Creating a New Collection Instance
Collections: The Public API
- Retrieving Collection Elements With
all - Signature
- Example Use
- Convert a Collection to a Native PHP Array With
toArray - Signature
- Example Use
- Splitting a Collection Into Smaller Pieces With
chunk - Signature
- Example Use
- Converting a Multi-Dimensional Collection Into a Single Dimension With
collapse - Signature
- Example Use
- Determining If a Collection Contains an Element With
contains - Signature
- Example Use
- Considerations of the
containsMethod - Using
containsWith Higher Order Messages - Determining if a Collection Contains an Element Using Strict Comparison With
containsStrict - Signature
- Example Use
- Getting the Number of Elements in a Collection With
count - Signature
- Example Use
- Determine Which Collection Elements are Not Present in the Provided Collections With
diff - Signature
- Example Use
- Returning Collection Elements That Are Not Present in the Specified Collections With
diffAssoc - Signature
- Example Use
- Retrieving Collection Elements Whose Keys Are Not Present in the Provided Keys With
diffKeys - Signature
- Example Use
- Executing a Function On All Collection Elements With
each - Signature
- Example Use
- Using
eachWith Higher Order Messages - Filtering Collection Elements With
filter - Signature
- Example Use
- Using
filterWith Higher Order Messages - Getting the First Collection Element With
first - Signature
- Example Use
- Using
firstWith Higher Order Messages - Reducing a Multi-Dimensional Collection to a Single Dimension Losing Keys With
flatten - Signature
- Example Use
- Swapping Element Keys and Values With
flip - Signature
- Example Use
- Paginating Collections With
forPage - Signature
- Example Use
- Using
chunkto Achieve Similar Results - Removing Collection Elements With
forget - Signature
- Example Use
- Retrieving Collection Elements With
get - Signature
- Example Use
- Grouping Collection Elements With
groupBy - Signature
- Example Use
- Preserving Keys With
groupBy - Determining If a Collection Has An Element With
has - Signature
- Example Use
- Combining Collection Elements Into a String With
implode - Signature
- Example Use
- Filtering Collections Based On Value Presence With
intersect - Signature
- Example Use
- Checking If a Collection Contains Items With
isEmpty - Signature
- Example Use
- Converting a Collection Into Something JSON Serializeable With
jsonSerialize - Signature
- Example Use
- Retrieving the Collection Element’s Keys With
keys - Signature
- Example Use
- Getting the Last Collection Element With
last - Signature
- Example Use
- Transforming Collection Elements With
map - Signature
- Example Use
- Using
mapwith Higher Order Messages - Mapping Collection Elements and Reducing to a Single Dimension With
flatMap - Signature
- Example Use
- Using
flatMapWith Higher Order Messages - Retrieving the Maximum Value of a Collection With
max - Signature
- Example Use
- Merging Multiple Collection Values With
merge - Signature
- Example Use
- Calculating the Minimum Value of a Collection With
min - Signature
- Example Use
- Retrieving Collection Element Values With
pluck - Signature
- Example Use
- Retrieving and Removing the Last Collection Element With
pop - Signature
- Example Use
- Adding an Element to the Beginning of a Collection With
prepend - Signature
- Example Use
- Retrieving and Removing an Element From a Collection With
pull - Signature
- Example Use
- Adding an Element to the End of a Collection With
push - Signature
- Example Use
- Adding New Elements to a Collection With
put - Signature
- Example Use
- Retrieving Random Collection Elements With
random - Signature
- Example Use
- Reducing a Collection to One Element With
reduce - Signature
- Example Use
- Conditionally Removing Elements From a Collection With
reject - Signature
- Example Use
- Using
rejectWith Higher Order Messages - Reversing the Order of Collection Elements With
reverse - Signature
- Example Use
- Finding an Element Key Conditionally With
search - Signature
- Example Use
- Removing the First Element of a Collection With
shift - Signature
- Example Use
- Randomizing Element Order With
shuffle - Signature
- Example Use
- Retrieving a Portion of a Collection With
slice - Signature
- Example Use
- Sorting a Collection With
sort - Signature
- Example Use
- Custom Sorting Comparison Function
- Sorting a Collection Based on a Key Value With
sortBy - Signature
- Example Use
sortByOptions- Sorting Flag Comparison Table
- The
SORT_NUMERICFlag - The
SORT_STRINGFlag SORT_STRINGandSORT_FLAG_CASEFlags for Case Insensitivity- The
SORT_LOCALE_STRINGFlag - The
SORT_NATURALFlag - The
SORT_NATURALandSORT_FLAG_CASEFlags for Case Insensitivity - Using
sortByWith Higher Order Messages - Sort a Collection in Descending Order With
sortByDesc - Signature
- Example Use
- Using
sortByDescWith Higher Order Messages - Removing a Portion of a Collection With
splice - Signature
- Example Use
- Calculating the Average Value of a Collection With
avg - Signature
- Example Use
- Averaging Nested Collections
- Using
avgWith Higher Order Messages - Calculating the Average Value of a Collection With
average - Signature
- Example Use
- Using
averageWith Higher Order Messages - Calculating the Sum of a Collection With
sum - Signature
- Example Use
- Using
sumWith Higher Order Messages - Retrieving a Specified Number of Items From a Collection With
take - Signature
- Example Use
- Converting a Collection’s Contents to JSON With
toJson - Signature
- Example Use
toJsonand Deeply Nested Data Structures- Converting a Collection to JSON With PHP’s Magic
__toStringMethod - Modifying Collection Elements With
transform - Signature
- Example Use
- Retrieving the Distinct Values of a Collection With
unique - Signature
- Example Use
- Retrieving Only the Values of a Collection’s Elements With
values - Signature
- Example Use
- Filtering Collection Elements With
where - Signature
- Example Use
- Pair the Values of a Collection With the Values of Other Collections With
zip - Signature
- Example Use
- Combining the Keys of a Collection With the Values of Another Collection With
combine - Signature
- Example Use
- Testing All Collection Values With
every - Signature
- Example Use
- Using
everyWith Higher Order Messages - Excluding Collection Elements With
except - Signature
- Example Use
- Retrieving a Subset Of a Collections Elements With
only - Signature
- Example Use
- Transforming Collection Element Keys With
keyBy - Signature
- Example Use
- Filtering a Collection Based On Key Presence With
whereIn - Signature
- Example Use
- Creating Combination of Elements With
crossJoin - Signature
- Example Use
- Dumping the Collection Contents and Stopping Script Execution for Debugging With
dd - Signature
- Example Use
- Dumping the Collection Contents and Continuing Script Execution for Debugging With
dump - Signature
- Example Use
- Executing a Function on Collection Elements With
eachSpread - Signature
- Example Use
- Filtering Collections Based on Key Presence With
intersectByKeys - Signature
- Example Use
- Checking If a Collection Contains Items With
isNotEmpty - Signature
- Example Use
- Convert Collection Elements Into Object Instances With
mapInto - Signature
- Example Use
- Executing a Function on Collection Elements and Values With
mapSpread - Signature
- Example Use
- Replicating the Behavior of the LINQ Zip Operator
- Reducing a Collection Into a Collection of Key/Array-Value Pairs With
mapToDictionary - Signature
- Example Use
- Reducing a Collection Into a Collection of Key/Collection-Value Pairs With
mapToGroups - Signature
- Example Use
- Reducing a Collection With User-Defined Keys With
mapWithKeys - Signature
- Example Use
- Retrieving Collection Elements At a Specific Interval With
nth - Signature
- Example Use
- Ensuring a Collection Always Contains a Specified Number of Elements With
pad - Signature
- Example Use
- Filtering Collections With (Without Losing Filtered Rejections)
partition - Signature
- Example Use
- Using
partitionWith Higher Order Messages - Executing a Function on a Collection and Returning the Function Results With
pipe - Signature
- Example Use
- Breaking a Collection Into a Specified Number of Groups With
split - Signature
- Example Use
- Adding Values to a Collection With
union - Signature
- Example Use
- Retrieving the Distinct Values of a Collection Using Strict Comparison Operators With
uniqueStrict - Signature
- Example Use
- Conditionally Executing a Callback On a Collection’s Elements With
unless - Signature
- Example Use
- Conditionally Executing a Callback On a Collection’s Elements With
when - Signature
- Example Use
- Filtering a Collection Based On Key Presence Using Strict Comparison Operators With
whereInStrict - Signature
- Example Use
- Filtering a Collection Based On Key Presence Using Strict Comparison Operators With
whereNotInStrict - Signature
- Example Use
- Filtering a Collection Based On Key Presence With
whereNotIn - Signature
- Example Use
- Performing Strict Comparisons
- Filtering Collection Elements Using Strict Comparison Operators With
whereStrict - Signature
- Example Use
- Calculating the Median Value of a Collection With
median - Signature
- Example Use
- Determining the Most Common Value in a Collection With
mode - Signature
- Example Use
- Combining the Values of Multiple Traversable Sources With
concat - Signature
- Example Use
- Execute a Callback on the Collection Instance While Returning the Original Collection Instance With
tap - Signature
- Example Use
- Creating a Copy of a Collection With
toBase - Signature
- Example Use
Collections: The Static API
- Creating a New Collection Instance From Arrays Using
make - Signature
- Example Use
- Ensure a Value Is a Collection With
wrap - Signature
- Example Use
- Returning the Items of a Collection With
unwrap - Signature
- Example Use
- Creating a Collection By Invoking a Callback a Given Number of Times With
times - Signature
- Example Use
- Adding Methods to the Higher Order Message List With
proxy - Signature
- Example Use
Message Bags
- The
MessageProviderInterface
The MessageBag Public API
- Adding Messages to the Message Bag With
add - Signature
- Example Use
- Notes on Keys
- Retrieving Messages With a Provided Format With
all - Signature
- Example Use
- Determining if There are Any Messages With
any - Signature
- Example Use
- Checking if There Are Any Messages With
isNotEmpty - Signature
- Example Use
- Retrieving the Number of Messages With
count - Signature
- Example Use
- Retrieving the First Message With
first - Signature
- Example Use
- Getting Specific Messages With
get - Signature
- Example Use
- Getting the Current Message Format With
getFormat - Signature
- Example Use
- Returning the Message Bag Instance With
getMessageBag - Signature
- Example Use
- Getting an Array of Messages With
getMessages - Signature
- Example Use
- Checking if Messages Exist for a Specific Input Key With
has - Signature
- Checking if There Are Any Messages With
isEmpty - Signature
- Example Use
- Converting the Message Bag to Something JSON Serializeable With
jsonSerialize - Signature
- Example Use
- Getting all of the Message Keys With
keys - Signature
- Example Use
- Merging Additional Messages With
merge - Signature
- Example Use
- Setting the Message Format With
setFormat - Signature
- Converting the Message Bag to an Array With
toArray - Signature
- Example Use
- Converting the Message Bag to JSON With
toJson - Signature
- Example Use
toJsonand Deeply Nested Data Structures__toString- Signature
- Example Use
View Error Bags
The ViewErrorBag Public API
- Getting the Number of Error Messages With
count - Signature
- Example Use
- Determining if There Are Any Error Messages With
any - Signature
- Example Use
- Getting the Message Bag Instance With
getBag - Signature
- Example Use
- Getting all Message Bag Instances With
getBags - Signature
- Example Use
- Determining if a Message Bag Exists With
hasBag - Signature
- Example Use
- Add a New Message Bag Instance to the View Error Bag With
put - Signature
- Example Use
- Resetting
MessageBagMessages
Dynamic Data Containers and the Fluent Data Type
Fluent Public API
- Retrieving Values With
get - Signature
- Example Use
- Fluent and Closures
- Getting Key/Value Data Associations With
getAttributes - Signature
- Example Use
- Converting the Data Object to an Array With
toArray - Signature
- Example Use
- Converting the Data Object to Something JSON Serializeable With
jsonSerialize - Signature
- Example Use
- Converting the Object to JSON With
toJson - Signature
- Example Use
toJsonand Deeply Nested Data Structures
Augmenting Framework Behavior With Macros
- Default Classes That Support Macros
- Creating a Callback Function Macro
- Creating Class Based Macros with Mixins
- Framework Classes with Dynamic Methods Available
- Notes on Eloquent Builder
Macroable Public API
- Defining a Callback Function Macro With
macro - Signature
- Example Use
- Injecting Class-Based Macros With
mixin - Signature
- Example Use
- Determining if a Class Has a Macro Defined With
hasMacro - Signature
- Example Use
- Macroable Implementation of PHP’s Magic
__callMethod - Signature
- Macroable Implementation of PHP’s Magic
__callStaticMethod - Signature
- Important Notes On
__calland__callStatic
Facades
- Facade Aliases and Importing Facades
- Fully Qualified Names vs. Aliases
- Using Facades
- Creating Facades
- Creating a Facade Alias
- Facade Class Reference
- Notes on
Blade - Notes on
Schema - Additional
CookieMethods - Additional
InputMethods - Additional
SchemaMethods - Additional
NotificationMethods - Additional
QueueMethods - Additional
StorageMethods - Resolving the Class Behind a Facade
Appendix A: Available Hash Functions
Appendix B: HTTP Status Codes
Appendix C: Language Specific Replacements
- Bulgarian
- German
