Simplify account creation.

This commit is contained in:
James Cole
2021-04-05 10:56:08 +02:00
parent 25dcb73e27
commit b812c2e09f
6 changed files with 226 additions and 102 deletions

View File

@@ -210,7 +210,7 @@ class AccountRepository implements AccountRepositoryInterface
*/
public function getAccountTypeByType(string $type): ?AccountType
{
return AccountType::whereType($type)->first();
return AccountType::whereType(ucfirst($type))->first();
}
/**