Skip to content

Commit 9be7894

Browse files
committed
cleanup
1 parent fc00a0d commit 9be7894

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

app/Http/Resources/PolicyResource.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ class PolicyResource extends JsonResource {
1515
public static $wrap = null;
1616

1717
public function toArray(Request $request): array {
18-
$activeFrom = $this->active_from;
19-
20-
if ($this->active_from !== null) {
21-
$activeFrom = Carbon::parse($this->active_from)->format('Y-m-d');
22-
}
23-
2418
return [
2519
'metadata' => [
2620
'policy_id' => $this->id,

0 commit comments

Comments
 (0)