Update TeachingController.php