Skip to content

Commit

Permalink
OpenSID#47 - Fix validasi desa_id
Browse files Browse the repository at this point in the history
  • Loading branch information
agungsugiarto committed Nov 25, 2020
1 parent bd0351b commit 5d87f10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Http/Controllers/Data/AnggaranDesaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ public function import()
public function do_import(Request $request)
{
$this->validate($request, [
'desa_id' => 'required|unique:das_anggaran_desa,desa_id',
'file' => 'required|file|mimes:xls,xlsx,csv|max:5120',
'bulan' => 'required|unique:das_anggaran_desa',
'tahun' => 'required|unique:das_anggaran_desa',
'desa' => 'required|unique:das_anggaran_desa,desa_id',
'file' => 'required|file|mimes:xls,xlsx,csv|max:5120',
'bulan' => 'required|unique:das_anggaran_desa',
'tahun' => 'required|unique:das_anggaran_desa',
]);

try {
Expand Down

0 comments on commit 5d87f10

Please sign in to comment.