$document->getRouteKey(), 'key' => [ 'public' => $document->getPublicKey(), 'route' => $document->getRouteKey(), ], 'category_id' => $document->category_id, 'name' => $document->name, 'code' => $document->code, 'description' => $document->description, 'file_name' => $document->file_name, 'files' => $document->files, 'slug' => $document->slug, 'user_id' => $document->user_id, 'user_type' => $document->user_type, 'upload_folder' => $document->upload_folder, 'deleted_at' => $document->deleted_at, 'url' => [ 'public' => trans_url('document/'.$document->getPublicKey()), 'user' => guard_url('document/document/'.$document->getRouteKey()), ], 'status' => trans('app.'.$document->status), 'created_at' => format_date($document->created_at), 'updated_at' => format_date($document->updated_at), ]; } }