Showing 10 of 1,090 results.

Laravel 5: Conditionally Throwing Exceptions With throw_unless

The throw_unless helper function is the logical counterpart to the throw_if helper function. If the provided $boolean value evaluates to false , a new instance of the provided exception will be created and thrown. Any parameters specified will be...

Laravel Macros: An Easy Way to Extend Laravel Components

Macros are a way to reduce the lines of code a developer has to write, and can be traditionally thought of as "shortcuts". Laravel generally uses macros to add, or inject, functions into various classes at runtime. Developers familiar with C# can...

Introducing Forte | Laracon, Blade and What's Next

…ome on, that's nice. But it also correlates with what I want to do: build a strong backbone and foundation for Blade that others can stand on top of, without risking breaking changes within the core framework. It also hints at where I want Forte...

Laravel 5: Logging Informative Messages With info

The info helper will write an information entry into Laravel's log files. It allows a $message to be set, as well as an optional $context (which is an array of data). While the $context must be an array, the actual elements of the array do not...

Defining Task Schedules | Laravel Task Scheduler: An Introduction

…chedule 11 * @return void 12 */ 13 protected function schedule ( Schedule $ schedule ) 14 { 15 // ... 16 } 17 18 // ... The Schedule class exposes many methods that help register the tasks that should be run. Most of the methods are a convenient...

Laravel MessageBag Public API: setFormat

setFormat($format = ':message') The setFormat is the logical opposite of the getFormat method. It allows developers to customize the format used by all methods of the MessageBag instance. It defines a $format parameter, whose argument will be used...

Filter Search