public function renewUrl(Request $request)
    {
        $records = RecordsRequest::fromRequest($this->app, $request, !!$request->request->get('renew_children_url'));

        $renewed = [];
        foreach ($records as $record) {
            $renewed[$record->getId()] = (string) $record->get_preview()->renew_url();
        };

        return $this->app->json($renewed);
    }
public function renewUrl(Request $request)
    {
        $records = RecordsRequest::fromRequest($this->app, $request, !!$request->request->get('renew_children_url'));

        $renewed = [];
        foreach ($records as $record) {
            $renewed[$record->getId()] = (string) $record->get_preview()->renew_url();
        };

        return $this->app->json($renewed);
    }
public function renewUrl ( Request $ request ) { $ records = RecordsRequest :: fromRequest ( $ this -> app , $ request , ! ! $ request -> request -> get ( 'renew_children_url' ) ) ; $ renewed = [ ] ; foreach ( $ records as $ record ) { $ renewed [ $ record -> getId ( ) ] = ( string ) $ record -> get_preview ( ) -> renew_url ( ) ; } ; return $ this -> app -> json ( $ renewed ) ; }
Renew url list of records

@param Request $request

@return Response
Renew url list of records