Skip to content

Commit

Permalink
Corrige método Save de Resource para detectar modo Create ou Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitor Siqueira committed Jul 17, 2018
1 parent 4e3a679 commit 005e428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static function get($endpoint = null, $params = [], $single = true)
// Alias for Create and Update methods
public static function save(array $params)
{
if (isset($params['Identificador'])) {
if (!isset($params['Identificador'])) {
return static::create($params);
}

Expand Down

0 comments on commit 005e428

Please sign in to comment.