This commit is contained in:
James Cole 2020-09-11 20:37:50 +02:00
parent 34e2595a3d
commit e2ad5c60c6
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -67,7 +67,7 @@ class PiggyBankRepository implements PiggyBankRepositoryInterface
*/
public function findByName(string $name): ?PiggyBank
{
return $this->user->piggyBanks()->where('name', $name)->first(['piggy_banks.*']);
return $this->user->piggyBanks()->where('piggy_banks.name', $name)->first(['piggy_banks.*']);
}
/**