Skip to content

Commit

Permalink
refactor(bank): Save bank validation
Browse files Browse the repository at this point in the history
- Adding composer extra validation for BIC, IBAN
  • Loading branch information
gnovaro committed Mar 3, 2024
1 parent 8fb763a commit 769bcd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Bank/BankSaveController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function save(Request $request)
$request->validate([
'name' => 'required',
'country_id' => 'required',
'bic' => 'required|bic|unique:bank',
'bic' => empty($request->uuid) ? 'required|bic|unique:bank' : 'required|bic',
'email' => 'nullable|email',
'website' => 'nullable|url',
]);
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

const APP_VERSION = '3.7.2';
const APP_VERSION = '3.7.3';

0 comments on commit 769bcd0

Please sign in to comment.