@@ 148-160 (lines=13) @@ | ||
145 | * @param $time |
|
146 | * @return Carbon |
|
147 | */ |
|
148 | public function getCreatedAtAttribute($time) |
|
149 | { |
|
150 | return new class($time) extends Carbon implements Arrayable |
|
151 | { |
|
152 | public function toArray() |
|
153 | { |
|
154 | return [ |
|
155 | 'date' => $this->toIso8601String(), |
|
156 | 'timezone' => $this->timezone, |
|
157 | ]; |
|
158 | } |
|
159 | }; |
|
160 | } |
|
161 | } |
@@ 91-103 (lines=13) @@ | ||
88 | * @param $time |
|
89 | * @return Carbon |
|
90 | */ |
|
91 | public function getCreatedAtAttribute($time) |
|
92 | { |
|
93 | return new class($time) extends Carbon implements Arrayable |
|
94 | { |
|
95 | public function toArray() |
|
96 | { |
|
97 | return [ |
|
98 | 'date' => $this->toIso8601String(), |
|
99 | 'timezone' => $this->timezone, |
|
100 | ]; |
|
101 | } |
|
102 | }; |
|
103 | } |
|
104 | } |
|
105 |