/** * *Function that retrieve all comments/contributions in a project **/ function retrieveComments($projectID) { return \App\models\Comment::whereProject_id($projectID)->orderBy('id', 'desc')->get(); }