From 67fafdeef74332b9d853fc77ef4ee86c60e2d9e4 Mon Sep 17 00:00:00 2001 From: Balazs Varkonyi Date: Sat, 4 Apr 2015 01:36:55 +0200 Subject: [PATCH] Return the new account from firstOrCreateEncrypted --- app/Models/Account.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/Account.php b/app/Models/Account.php index d366a85c14..e95240cdbb 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -54,6 +54,7 @@ class Account extends Model App::abort(500, 'Could not create new account with data: ' . json_encode($fields)); } + return $account; }