1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace App\Http\Controllers;
- use Illuminate\Http\Request;
- use App\User;
- use Auth;
- class HomeController extends Controller
- {
- /**
- * Create a new controller instance.
- *
- * @return void
- */
- public function __construct()
- {
- // $this->middleware('auth');
- }
- public function student_q_form($hash)
- {
- $hashids=new \Hashids\Hashids('student_q_signup', 25);
- $hash_teacher_ids=$hashids->decode($hash);
- $user =User::find($hash_teacher_ids[0]);
- if(empty($hash_teacher_ids[0])) abort(404);
- return view('q_apply_form',compact('hash_teacher_ids','user'));
- }
- public function wishlist_student_register($hash)
- {
- $hashids=new \Hashids\Hashids('student_wishlist_signup', 25);
- $hash_student_ids=$hashids->decode($hash);
- if(empty($hash_student_ids[0])) abort(404);
- $user =User::find($hash_student_ids[0]);
- return view('auth.wishlist_register_form',compact('hash_student_ids','user'));
- }
- }
|