updateOrInsert() public method

Insert or update a record matching the attributes, and fill it with values.
public updateOrInsert ( array $attributes, array $values = [] ) : boolean
$attributes array
$values array
return boolean
Exemplo n.º 1
-1
 /**
  * Insert or update a record matching the attributes, and fill it with values.
  *
  * @param array $attributes
  * @param array $values
  * @return bool 
  * @static 
  */
 public static function updateOrInsert($attributes, $values = array())
 {
     return \Illuminate\Database\Query\Builder::updateOrInsert($attributes, $values);
 }