This commit is contained in:
James Cole
2020-09-11 20:37:50 +02:00
parent 34e2595a3d
commit e2ad5c60c6

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.*']);
}
/**