$product->getRouteKey(), 'key' => [ 'public' => $product->getPublicKey(), 'route' => $product->getRouteKey(), ], 'category_id' => $product->category_id, 'sub_category_id' => $product->sub_category_id, 'state_id' => $product->state_id, 'city_id' => $product->city_id, 'user_id' => $product->user_id, 'user_type' => $product->user_type, 'name' => $product->name, 'description' => $product->description, 'images' => $product->images, 'data' => $product->data, 'deleted_at' => $product->deleted_at, 'url' => [ 'public' => trans_url('product/'.$product->getPublicKey()), 'user' => guard_url('product/product/'.$product->getRouteKey()), ], 'status' => trans('app.'.$product->status), 'created_at' => format_date($product->created_at), 'updated_at' => format_date($product->updated_at), ]; } }