app/Http/Requests/BiodataRequest.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 [
            "first_name" => ["required"],
            "last_name" => ["required"],
            "place_of_birth" => ["required"],
            "date_of_birth" => ["required"],
            "gender" => ["required" , 'in:Male,Female'],
            "provice" => ["required"],
            "regency" => ["required"],
        ];
    }
public function rules ( ) { return [ " first_name " => [ " required " ] , " last_name " => [ " required " ] , " place_of_birth " => [ " required " ] , " date_of_birth " => [ " required " ] , " gender " => [ " required " , 'in:Male,Female' ] , " provice " => [ " required " ] , " regency " => [ " required " ] , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .