diff --git a/app/Http/Requests/User/PesanBuketRequest.php b/app/Http/Requests/User/PesanBuketRequest.php index b4f88a6..6158f11 100644 --- a/app/Http/Requests/User/PesanBuketRequest.php +++ b/app/Http/Requests/User/PesanBuketRequest.php @@ -15,8 +15,10 @@ public function rules(): array { return [ 'id_buket' => 'required|exists:bukets,id_buket', // Tambahan validasi keamanan + //tambahan validasi untuk teks aja 'nama' => 'required|string|min:3|max:100', 'no_wa' => 'required|numeric|digits_between:10,15', + //tambah munculkan jika tanggal udah lewat disable 'tgl_ambil' => 'required|date|after_or_equal:today', 'waktu_ambil' => [ 'required', @@ -26,7 +28,7 @@ public function rules(): array ], 'bukti_bayar' => 'required|image|mimes:jpeg,png,jpg|max:2048', 'request_khusus' => 'nullable|string|max:255', - 'ucapan' => 'nullable|string|max:500', + 'ucapan' => 'nullable|string|max:100', ]; }