|
@@ -9,6 +9,7 @@ use Illuminate\Foundation\Auth\RegistersUsers;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use App\Mail\SignUp;
|
|
use App\Mail\SignUp;
|
|
use App\User;
|
|
use App\User;
|
|
|
|
+use App\Models\Department;
|
|
use Hash;
|
|
use Hash;
|
|
use Mail;
|
|
use Mail;
|
|
|
|
|
|
@@ -77,6 +78,7 @@ class RegisterController extends Controller
|
|
// 'phone_number' => $req->phonenumber,
|
|
// 'phone_number' => $req->phonenumber,
|
|
'university_name' => $req->universityname,
|
|
'university_name' => $req->universityname,
|
|
'department' => $req->department,
|
|
'department' => $req->department,
|
|
|
|
+ 'others_department' => $req->others_department,
|
|
'designation' => $req->designation,
|
|
'designation' => $req->designation,
|
|
'uni_website' => $req->universitywebsite,
|
|
'uni_website' => $req->universitywebsite,
|
|
'user_type' => $req->user_type,
|
|
'user_type' => $req->user_type,
|
|
@@ -94,7 +96,7 @@ class RegisterController extends Controller
|
|
// $message->to($user_mail)->subject('New Email Send to you');
|
|
// $message->to($user_mail)->subject('New Email Send to you');
|
|
// });
|
|
// });
|
|
|
|
|
|
- return redirect()->to("/login-v2");
|
|
|
|
|
|
+ return redirect()->to("/login-v2")->with('success','Your registration successfully saved. Please check your email for verification login.');
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -105,8 +107,8 @@ class RegisterController extends Controller
|
|
*/
|
|
*/
|
|
public function showRegistrationForm()
|
|
public function showRegistrationForm()
|
|
{
|
|
{
|
|
-
|
|
|
|
- return view('register-v2');
|
|
|
|
|
|
+ $departments =Department::where('status',1)->orderBy('name','ASC')->get();
|
|
|
|
+ return view('register-v2',compact('departments'));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|