Skip to content

Commit 9ff2669

Browse files
committed
#93 fix
1 parent 5638671 commit 9ff2669

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"email": "[email protected]"
1313
}
1414
],
15-
"version": "2.0.2",
15+
"version": "2.0.3",
1616
"require": {
1717
"laravel/framework": "5.3.*",
1818
"laravelcollective/html": "^5.3",

src/Builders/RequestBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ private function buildRules($type)
112112
$camelName = Str::camel($this->name);
113113
// Insert table names
114114
$tableName = strtolower($camelName);
115-
$rules .= "'" . $field->relationship_name . "_id' => '$field->validation:$tableName,$field->relationship_name_id,'." . '$this->' . $this->request . ", \r\n ";
115+
$rules .= "'" . $field->relationship_name . "_id' => '$field->validation:$tableName,$field->relationship_name,'." . '$this->' . $this->request . ", \r\n ";
116116
break;
117117
}
118118
} elseif ($field->type == 'file' || $field->type == 'photo') {

0 commit comments

Comments
 (0)