Showing 10 of 1,278 results.

Laravel Artisan Queue Command: The queue:retry Command

The queue:retry command can be used to attempt to process the specified failed jobs again. The command is versatile in how it accepts the IDs of the jobs to retry. All of the jobs can be retried by supplying all as the only argument: 1 # Retry all...

Laravel 5: String Pluralization Syntax

In the previous sections, we briefly explored the concept of pluralization in regards to translation lines. In this section, we will explore the pluralization syntax in greater detail and develop our pluralization skills a little more.

Laravel Collection Public API: values

values The values method can be used to retrieve a new Collection instance containing only the values of the original collection instance. The keys of the new collection will be reset to consecutive numerical keys. The following example...

Laravel 5: Recover From Possible Exceptions With rescue

The rescue function can be used to attempt execution of an operation that has the potential to throw an exception. The rescue function will allow you to specify a default value, through the $rescue parameter that will be returned if the operation...

Laravel Collection Public API: merge

merge($items) The merge methods merges the given $items with the items in the collection. The merge method will replace any item in the original collection's items if a string key with the same value exists in the supplied $items . If the $items...

Laravel Collection Public API: except

except($keys) The except method will return all the key/value pairs in the collection where the keys in the collection are not in the supplied $keys array. Internally, this method makes a call to the Illuminate\Support\Arr:except($array, $keys)...

Filter Search