Model
updateOrCreate(array $attributes, array $values = array(), array $joining = array(), bool $touch = true)
Create or update a related record matching the attributes, and fill it with values. Parameters array $attributes array $values array $joining bool $touch Return Value Model