Get the first record matching the attributes or create it.
public firstOrCreate ( array $attributes, array $values = [] ) : |
||
$attributes | array | |
$values | array | |
return |
public firstOrCreate ( array $attributes, array $values = [] ) : |
||
$attributes | array | |
$values | array | |
return |