Expand tests.

This commit is contained in:
James Cole
2016-12-10 16:32:52 +01:00
parent 0fe0de1a7f
commit bae2161ee3
8 changed files with 203 additions and 117 deletions

View File

@@ -43,7 +43,7 @@ class TransactionType extends Model
if (!auth()->check()) {
throw new NotFoundHttpException;
}
$transactionType = self::where('type', $type)->first();
$transactionType = self::where('type', ucfirst($type))->first();
if (!is_null($transactionType)) {
return $transactionType;
}