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