是因为在 $activity=Activity::where('center_id','=',$center->id)->where('Date','=',date("Y-m-d", $sunday));少加了->firstOrFail();
转载于:https://www.cnblogs.com/xzjs/p/3906664.html
是因为在 $activity=Activity::where('center_id','=',$center->id)->where('Date','=',date("Y-m-d", $sunday));少加了->firstOrFail();
转载于:https://www.cnblogs.com/xzjs/p/3906664.html