'user', '_resource' => 'project', ]; foreach ($this->getAttributes() as $attribute => $value) { switch ($attribute) { case 'name': case 'business_id': case 'slug': case 'private': case 'budget': case 'start': case 'finish': case 'created_at': case 'updated_at': case 'archived_at': case 'deleted_at': $resource[$attribute] = $value; break; } } return $resource; } }