Input::has - the has will respond to a value from a field and if the field was not filled in will return null.
Try this
if(Input::get('new_type') == '')
{
$property->Type = Input::get('curr_type');
}
else
{
$property->Type = Input::get('new_type');
}
AtomicRSA said:
Input::has - the has will respond to a value from a field and if the field was not filled in will return null.
Try this
if(Input::get('new_type') == '') { $property->Type = Input::get('curr_type'); } else { $property->Type = Input::get('new_type'); }
Still nothing. The same thing happens.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community