public function scopeProjectSessions($query) { return $query->where('idProject', Project::idProject()); }