$banner->getRouteKey(), 'key' => [ 'public' => $banner->getPublicKey(), 'route' => $banner->getRouteKey(), ], 'id' => $banner->id, 'name' => $banner->name, 'folder_upload' => $banner->folder_upload, 'link_redirect' => $banner->link_redirect, 'status' => $banner->status, 'url' => [ 'public' => trans_url('com.ryo.test/'.$banner->getPublicKey()), 'user' => guard_url('com.ryo.test/banner/'.$banner->getRouteKey()), ], 'status' => trans('app.'.$banner->status), 'created_at' => format_date($banner->created_at), 'updated_at' => format_date($banner->updated_at), ]; } }