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