src/Services/CrudActions.php
public function save($eloquent, UpdateRequest $request)
    {
        $saver = app('scaffold.module')->saver();
        $saver = new $saver($eloquent, $request);

        if (!$saver instanceof Saver) {
            throw new Exception('Saver must implement '.Saver::class.' contract');
        }

        return $saver->sync();
    }
public function save($eloquent, UpdateRequest $request)
    {
        $saver = app('scaffold.module')->saver();
        $saver = new $saver($eloquent, $request);

        if (!$saver instanceof Saver) {
            throw new Exception('Saver must implement '.Saver::class.' contract');
        }

        return $saver->sync();
    }
public function save ( $ eloquent , UpdateRequest $ request ) { $ saver = app ( 'scaffold.module' ) -> saver ( ) ; $ saver = new $ saver ( $ eloquent , $ request ) ; if ( ! $ saver instanceof Saver ) { throw new Exception ( 'Saver must implement ' . Saver :: class . ' contract' ) ; } return $ saver -> sync ( ) ; }
Update item callback.

@param               $eloquent
@param UpdateRequest $request

@throws Exception

@return string

@internal param $repository
Update item callback .