我在laravel 5.2工作,我已经完成了以下代码,它已成功执行。但是在laravel 5.3中它会产生
"试图没有财产对象错误"
当我试图获取特定的列值时,发布的值也是空的.plz帮助我。
$multiple_country_name=Input::get('multiple_country_name');
$multiple_desination=Input::get('multiple_destination');
$multiple_from=Input::get('multiple_from');
$multiple_to=Input::get('multiple_to');
$multiple_country_name1=explode(',', $multiple_country_name);
$multiple_desination1=explode(',',$multiple_desination);
$multiple_from1=explode(',', $multiple_from);
$multiple_to1=explode(',', $multiple_to);
for($i=0;$i<count($multiple_desination1);$i++)
{
$traveling_details=new traveling_details();
$traveling_details->travel_request_id=$travel_request->id;
$traveling_details->ticket_required=$ticket;
$country=country::where('name','=',$multiple_country_name1[$i])->first()->id;
$traveling_details->country_id=$country;
$traveling_details->destination=$multiple_desination1[$i];
$traveling_details->from_date=date("Y-m-d", strtotime($multiple_from1[$i]));
//$to_date= date("Y-m-d", strtotime($multiple_to1[$i]));
$traveling_details->to_date=date("Y-m-d", strtotime($multiple_to1[$i]));
$traveling_details->save();
}