TeachController.php 593 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Http\Controllers\Mobile\Health;
  3. use App\Http\Controllers\Mobile\MobileBaseController;
  4. use App\Services\Common\CategoryService;
  5. class TeachController extends MobileBaseController
  6. {
  7. protected $categoryService;
  8. public function __construct(CategoryService $categoryService)
  9. {
  10. $this->categoryService = $categoryService;
  11. }
  12. public function index()
  13. {
  14. $district = $this->categoryService->getDefaultDistrict();
  15. return view('mobile.app.health.teach.index', [
  16. 'defaultCity' => $district->defaultCity,
  17. ]);
  18. }
  19. }