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