For a relationship, one-to-oneyou can use something like this:
Form::text('detail[product_name]')
In this case, it $order->detail->product_namewill be filled in this text box if the instance is Orderattached to fromusing Form::model($order)with the appropriate model Detail, but it may not be possible one-to-many, because there will simply be a collection, and you need a loop.
source
share