From 7bcbde28e4f164cb590ef261fad23c7f6842973c Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 24 Jul 2017 16:55:11 +0300 Subject: [PATCH] Fix calls to abort --- app/Models/LookupModel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/LookupModel.php b/app/Models/LookupModel.php index 1e406191628b..8b72aef7b1f0 100644 --- a/app/Models/LookupModel.php +++ b/app/Models/LookupModel.php @@ -34,7 +34,7 @@ class LookupModel extends Eloquent if ($lookupAccount) { $data['lookup_account_id'] = $lookupAccount->id; } else { - abort('Lookup account not found for ' . $accountKey); + abort(404, 'Lookup account not found for ' . $accountKey); } static::create($data); @@ -96,7 +96,7 @@ class LookupModel extends Eloquent ->first(); } if (! $isFound) { - abort("Looked up {$className} not found: {$field} => {$value}"); + abort(404, "Looked up {$className} not found: {$field} => {$value}"); } Cache::put($key, $server, 120);