You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Greetings, I'm just getting started working with Orchid (and I really like it so far). I'm trying to write a test for a CRUD Resource item and I can't figure out what to pass to the post request. For example, the test is of the form,
For a normal form I would pass an array of the field names and values, but that doesn't seem to work here. I get an SQL insert error where it looks like only the Laravel timestamp values are getting passed. Anyone have an example of the proper way to build a test call for a resource form?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings, I'm just getting started working with Orchid (and I really like it so far). I'm trying to write a test for a CRUD Resource item and I can't figure out what to pass to the post request. For example, the test is of the form,
$response = $this->post('/admin/crud/create/venue-resources/save', ????);
For a normal form I would pass an array of the field names and values, but that doesn't seem to work here. I get an SQL insert error where it looks like only the Laravel timestamp values are getting passed. Anyone have an example of the proper way to build a test call for a resource form?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions