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