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