$category->getRouteKey(), 'key' => [ 'public' => $category->getPublicKey(), 'route' => $category->getRouteKey(), ], 'id' => $category->id, 'name' => $category->name, 'slug' => $category->slug, 'status' => $category->status, 'user_id' => $category->user_id, 'user_type' => $category->user_type, 'upload_folder' => $category->upload_folder, 'deleted_at' => $category->deleted_at, 'created_at' => $category->created_at, 'updated_at' => $category->updated_at, 'url' => [ 'public' => trans_url('faq/'.$category->getPublicKey()), 'user' => guard_url('faq/category/'.$category->getRouteKey()), ], 'status' => trans('app.'.$category->status), 'created_at' => format_date($category->created_at), 'updated_at' => format_date($category->updated_at), ]; } }