Using optional attributes in a Laravel factory

Source: Freek Van der Herten