$url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
Student::where('id', user()->id)
->update(['Project_id'=>$request->id]);
// DB::select(
// 'update students
// set Project_id = ?
// where id = ?',
// [$request->id, user()->id]);