Showing 10 of 2,055 results.

8. Termination. | License

…xcept as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section...

Laravel MessageBag Public API: toJson

toJson($options = 0) The toJson method will return a JSON encoded version of the data stored within the message bag instance. It internally does this by returning a call to PHP's json_encode function, passing in any $options that were supplied....

Laravel 5: Getting the Last Element of an Array With last

The last function is the logical opposite of the head function: it will return the last element of an array without modifying the array. The last helper function is a wrapper around PHP's end function.The signature of the last function is: 1...

Laravel Collection Public API: average

average($key = null) The average method is simply an alias of the avg (discussed in the Laravel Collection Public API: avg article) method, and can be used in exactly the same way to calculate the averages of items within a collection. 1 <?php 2 3...

Front-end: Cannot Convert String to Array | Troubleshooting

If you are receiving an error stating something similar to "Cannot convert string to array" when rendering your front-end pages after generating images, the most common cause is forgetting to add the required fieldset to your blueprints. If the...

Notes on Blade | Laravel 5 Facades

Most facades request a concrete class implementation from the service container based off of some abstract string representation. However, the Blade facade retrieve an "Illuminate\View\Engines\EngineResolver" instance from the...

Laravel MessageBag Public API: all

all($format = null) The all method can be used to retrieve all the messages according to a given $format . The $format is null by default, which will cause the all method to use the format stored within the MessageBag instance (which can be...