We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 45987b2 + 1df3b5c commit 164fff0Copy full SHA for 164fff0
src/Builders/ControllerBuilder.php
@@ -175,7 +175,9 @@ public function relationshipsBuilder()
175
. ucfirst(Str::camel($menu->name))
176
. '::pluck("'
177
. $field->relationship_field
178
- . '", "id")->prepend(\'Please select\', null);'
+ //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);'
181
. "\r\n";
182
}
183
@@ -301,4 +303,4 @@ public function enum()
301
303
return $return;
302
304
305
-}
306
+}
0 commit comments