I have patched it with this:
$('form').on('submit', function(e){
if( !$('#price_per_day-toggle input').is(':checked') ){
$('#price_per_day-controls .price_per_day-item input').removeAttr( "name" );
}
})
It checks if the rent
is checked. If it is not checked, then it removes attribute name from input fields causing problems.
Maybe there is a problem in how laravel receives input from array.
Anyone got a better suggestion?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community