Skip to content

Commit

Permalink
Perbaiki validasi prosedur (#616)
Browse files Browse the repository at this point in the history
* Perbaiki validasi prosedur

* Update catatan_rilis.md

Co-authored-by: Afila <[email protected]>
  • Loading branch information
yogiperdana and apidong authored Jan 16, 2023
1 parent 6dc687f commit 16f9c31
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Requests/ProsedurRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function authorize()
public function rules()
{
return [
'judul_prosedur' => 'required|string|min:5|max:255',
'judul_prosedur' => 'required|string|min:5|max:150',
'file_prosedur' => 'file|mimes:jpg,jpeg,png,gif,pdf|max:2048',
];
}
Expand Down
1 change: 1 addition & 0 deletions catatan_rilis.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ Di rilis v23.01.01, menyediakan fitur Widget Perangkat Kecamatan dan Tombol Rese

1. [#609](https://github.com/OpenSID/OpenDK/issues/609) Perbaikan foto dan nama camat di menu profil tidak tampil.
2. [#605](https://github.com/OpenSID/OpenDK/issues/605) Perbaikan eror migrasi pada tabel prosedur.
3. [#605](https://github.com/OpenSID/OpenDK/issues/615) Perbaikan validasi prosedur, judul prosedur tidak boleh lebih dari 150 karakter.
7 changes: 7 additions & 0 deletions resources/views/informasi/prosedur/form_create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,10 @@
</div>
</div>
<div class="ln_solid"></div>

@include('partials.asset_jqueryvalidation')

@push('scripts')
{!! JsValidator::formRequest('App\Http\Requests\ProsedurRequest', '#form-prosedur') !!}
@endpush

0 comments on commit 16f9c31

Please sign in to comment.