$users = DB::table('user')->select('id', 'name', 'email','api_token','created_at') ->where('email' , $email) ->where('name' , $name) ->get();
$projects = Project::whereHas('projectOffers', function ($offer) { $offer->where('teacher_id', "Ahmed"); $offer->where('status_id', "Accepted"); })->where('status_id', "inprogress")->get();