Laravel 5: Provide Default Values for Object Properties With optional
The optional function returns a new instance of Illuminate\Support\Optional with the provided value. This helper class allows you to easily retrieve a default, or null value on method return values or object properties that might not exist. This...