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