HomeController.php 704 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App\Http\Controllers;
  3. use Illuminate\Http\Request;
  4. use Auth;
  5. class HomeController extends Controller
  6. {
  7. /**
  8. * Create a new controller instance.
  9. *
  10. * @return void
  11. */
  12. public function __construct()
  13. {
  14. // $this->middleware('auth');
  15. }
  16. /**
  17. * Show the application dashboard.
  18. *
  19. * @return \Illuminate\Contracts\Support\Renderable
  20. */
  21. public function student_registration_Qform($hash)
  22. {
  23. $hashids=new \Hashids\Hashids('student_signup', 25);
  24. $hash_teacher_ids=$hashids->decode($hash);
  25. if(empty($hash_teacher_ids[0])) abort(404);
  26. return view('Q_apply_form',compact('hash_teacher_ids'));
  27. }
  28. }