Skip to content

Commit 164fff0

Browse files
authored
Merge pull request #119 from ezequiel9/patch-1
Update Controller Builder
2 parents 45987b2 + 1df3b5c commit 164fff0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Builders/ControllerBuilder.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ public function relationshipsBuilder()
175175
. ucfirst(Str::camel($menu->name))
176176
. '::pluck("'
177177
. $field->relationship_field
178-
. '", "id")->prepend(\'Please select\', null);'
178+
//null list select values like array_values so, if you
179+
//want delete one row it will not match the value with the actual id.
180+
. '", "id")->prepend(\'Please select\', 0);'
179181
. "\r\n";
180182
}
181183
}
@@ -301,4 +303,4 @@ public function enum()
301303
return $return;
302304
}
303305

304-
}
306+
}

0 commit comments

Comments
 (0)