Showing 10 of 2,055 results.

Introduction & Installation

…:publish --tag = statamic-site-essentials-config This command will publish many configuration files to your project's config/site_essentials folder. If you do not plan on customizing the config/site_essentials/templating.php configuration file,...

getFirstFatalError | Validating Workspaces

Retrieves the first fatal error. If the error source contains multiple types of errors, such as parser errors and validation errors, all errors will be considered. Fatal errors are considered those that would produce invalid compiled PHP code,...

Laravel 5: Logging Informative Messages With info

…hich is an array of data). While the $context must be an array, the actual elements of the array do not have to be arrays themselves.The signature of the info function is: 1 function info ( 2 $ message , 3 $ context = [ ] 4 ) ;The following...

Functions | Procedure vs. Function vs. Method vs. ?

Let's start with functions, because that will flow better with the previous examples. When we wrote our triangleArea function, that really was a function . Functions return a value to whatever code that called it. In our above example, some code...

An Introduction to Laravel Message Bags

…ibly simple to format messages on HTML forms, emails, etc. The MessageBag class implements both the Illuminate\Contracts\Support\MessageProvider and Illuminate\Contracts\Support\MessageBag interfaces.The MessageProvider interface defines only one...

Laravel Helper Function: logger

…of \Illuminate\Log\Writer class. When the logger function is not being used to retrieve a Log instance, a $message can be set and it will be written to Laravel's log files. An optional $context can also be supplied. The $context must be an array,...