app/Http/Requests/LaporanRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'tanggal_laporan' => 'sometimes',
            'kegiatan_pekerjaan' => 'required',
            'deskripsi_pekerjaan' => 'required',
            'output' => 'required',
            'durasi' => 'required',
            'capaian_id' => 'required'
        ];
    }
public function rules ( ) { return [ 'tanggal_laporan' => 'sometimes' , 'kegiatan_pekerjaan' => 'required' , 'deskripsi_pekerjaan' => 'required' , 'output' => 'required' , 'durasi' => 'required' , 'capaian_id' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .