resource; return [ 'id' => $model->id, 'name' => $model->name, 'slug' => $model->slug, 'permissions' => AdminPermissionResource::collection($this->whenLoaded('permissions')), 'vue_routers' => VueRouterResource::collection($this->whenLoaded('vue_routers')), 'created_at' => (string) $model->created_at, 'updated_at' => (string) $model->updated_at, ]; } }