public function findTraining(Route $route) { $this->training = Training::findOrFail($route->getParameter('trainings')); }