From 005e428e8bef85d72d8ae915e42a5dc9bced1e46 Mon Sep 17 00:00:00 2001 From: Vitor Siqueira Date: Tue, 17 Jul 2018 13:32:46 -0300 Subject: [PATCH] =?UTF-8?q?Corrige=20m=C3=A9todo=20Save=20de=20Resource=20?= =?UTF-8?q?para=20detectar=20modo=20Create=20ou=20Update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/Resource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Resource.php b/src/Http/Resource.php index 36f4d45..56ef19d 100644 --- a/src/Http/Resource.php +++ b/src/Http/Resource.php @@ -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); }