Commit 4b1c03f3 authored by cygnet's avatar cygnet

changes related to date and status on faq api

parent 9150e260
...@@ -20,8 +20,8 @@ class FaqsResource extends Resource ...@@ -20,8 +20,8 @@ class FaqsResource extends Resource
'id' => $this->id, 'id' => $this->id,
'question' => $this->question, 'question' => $this->question,
'answer' => $this->answer, 'answer' => $this->answer,
'status' => $this->status, 'status' => ($this->isActive()) ? "Active" : "InActive",
'created_at' => $this->created_at->toIso8601String(), 'created_at' => $this->created_at->toDateString(),
]; ];
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment