Fix calls to abort
This commit is contained in:
parent
9e437e8a12
commit
7bcbde28e4
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue