@@ 208-218 (lines=11) @@ | ||
205 | return $right->id; |
|
206 | } |
|
207 | ||
208 | public function getAttributes($right) |
|
209 | { |
|
210 | return [ |
|
211 | 'name' => $right->name, |
|
212 | 'description' => $right->description, |
|
213 | 'created_at' => Carbon::parse($right->created_at)->setTimezone('UTC')->format(Carbon::ISO8601), |
|
214 | 'updated_at' => Carbon::parse($right->updated_at)->setTimezone('UTC')->format(Carbon::ISO8601), |
|
215 | 'created_by' => $right->created_by, |
|
216 | 'updated_by' => $right->updated_by, |
|
217 | ]; |
|
218 | } |
|
219 | } |
@@ 227-237 (lines=11) @@ | ||
224 | return $role->id; |
|
225 | } |
|
226 | ||
227 | public function getAttributes($role) |
|
228 | { |
|
229 | return [ |
|
230 | 'name' => $role->name, |
|
231 | 'description' => $role->description, |
|
232 | 'created_at' => Carbon::parse($role->created_at)->setTimezone('UTC')->format(Carbon::ISO8601), |
|
233 | 'updated_at' => Carbon::parse($role->updated_at)->setTimezone('UTC')->format(Carbon::ISO8601), |
|
234 | 'created_by' => $role->created_by, |
|
235 | 'updated_by' => $role->updated_by, |
|
236 | ]; |
|
237 | } |
|
238 | ||
239 | public function getRelationships($role, $isPrimary, array $includeList) |
|
240 | { |