src/http/controllers/HCBaseController.php
public function apiRestore()
    {
        $toRestore = request()->input('list');

        if (sizeOf($toRestore) <= 0)
            return HCLog::info('CORE-0006', trans('HCTranslations::core.nothing_to_restore'));

        $response = $this->__apiRestore($toRestore);

        if (isset($response))
            return $response;

        return ['success' => true, 'list' => $toRestore];
    }
public function apiRestore()
    {
        $toRestore = request()->input('list');

        if (sizeOf($toRestore) <= 0)
            return HCLog::info('CORE-0006', trans('HCTranslations::core.nothing_to_restore'));

        $response = $this->__apiRestore($toRestore);

        if (isset($response))
            return $response;

        return ['success' => true, 'list' => $toRestore];
    }
public function apiRestore ( ) { $ toRestore = request ( ) -> input ( 'list' ) ; if ( sizeOf ( $ toRestore ) <= 0 ) return HCLog :: info ( 'CORE-0006' , trans ( 'HCTranslations::core.nothing_to_restore' ) ) ; $ response = $ this -> __apiRestore ( $ toRestore ) ; if ( isset ( $ response ) ) return $ response ; return [ 'success' => true , 'list' => $ toRestore ] ; }
Recovers items from database by given id's
Just need to set wanted Model name with list parameter

@return mixed
Recovers items from database by given id s Just need to set wanted Model name with list parameter