Answers for "laravel required without all validation"

PHP
2

field not required validation laravel

$this->validate($request, [
	"field_nullable" => "nullable"
]
Posted by: Guest on May-11-2021
0

validation required in laravel

Request()->validate([
            'nik' => 'required',
            'nama' => 'required',
            'alamat' => 'required',
            'notelp' => 'required',
            'jk' => 'required',
            'agama' => 'required',
            'pekerjaan' => 'required',
            'status' => 'required',

        ], [
            'nik.required' => 'nik Wajib Diisi!',
            'nama.required' => 'nama perolehan Wajib Diisi!',
            'alamat.required' => 'alamat Wajib Diisi!',
            'notelp.required' => 'notelp Wajib Diisi!',    
            'jk.required' => 'jk Wajib Diisi!',        
            'agama.required' => 'agama habis Wajib Diisi!',
            'pekerjaan.required' => 'pekerjaan Wajib Diisi!',
            'status.required' => 'status Wajib Diisi!',
        ]);
Posted by: Guest on October-09-2021

Code answers related to "laravel required without all validation"

Browse Popular Code Answers by Language