$products->getRouteKey(), 'key' => [ 'public' => $products->getPublicKey(), 'route' => $products->getRouteKey(), ], 'productname' => $products->productname, 'productdescription' => $products->productdescription, 'url' => [ 'public' => trans_url('product/'.$products->getPublicKey()), 'user' => guard_url('product/products/'.$products->getRouteKey()), ], 'status' => trans('app.'.$products->status), 'created_at' => format_date($products->created_at), 'updated_at' => format_date($products->updated_at), ]; } }