我有一个带有CalendarService的laravel项目,我将该服务注入(inject)到我的Controller中。在构造函数中我做了这样的事情:日历服务.php/**@varCollection|Timelog[]*/private$timelogs;publicfunction__construct(){$this->currentRoute=URL::to('/')."/home";$this->timelogs=Auth::user()->timelogs()->get();$this->currentDay=0;}HomeController.php/**@varCa