app/Http/Requests/PertumbuhanRequest.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 [
            'jenis_kelamin'    => ['required', Rule::in(['L','P'])],
            'usia_dalam_bulan' => 'required|numeric|',
            'berat_badan'      => 'required',
        ];   
    }
public function rules ( ) { return [ 'jenis_kelamin' => [ 'required' , Rule :: in ( [ 'L' , 'P' ] ) ] , 'usia_dalam_bulan' => 'required|numeric|' , 'berat_badan' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .