/**
  * @param $id
  * @return model
  */
 public function getPublishedFiles($id, $filename = null)
 {
     if ($filename) {
         return $this->orgPublished->where('organization_id', $id)->where('filename', '=', $filename)->get();
     }
     return $this->orgPublished->where('organization_id', $id)->get();
 }
 /**
  * Get the OrganizationPublished model.
  * @return mixed
  */
 protected function getCurrentlyPublishedOrganizationFile()
 {
     return $this->organizationPublished->where('organization_id', '=', $this->organization->id)->get();
 }