private function getBacktraceUse()
    {
        $debugBacktrace = collect(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 30))->filter(function ($backtrace) {
            $backtraceClass = (isset($backtrace['class'])) ? $backtrace['class'] : null;

            return $backtraceClass === $this->listenClass;
        })->first();
        $checkBacktrace = null;
        $backtraceFile = (isset($debugBacktrace['file'])) ? $debugBacktrace['file'] : null;
        $backtraceFunction = (isset($debugBacktrace['function'])) ? $debugBacktrace['function'] : null;
        if (!is_null($debugBacktrace) && str_contains($backtraceFile, 'Illuminate/Database/Eloquent/SoftDeletingScope.php') && $backtraceFunction == 'update') {
            $checkBacktrace = [
                'object'   => $debugBacktrace['object'],
                'function' => $debugBacktrace['function'],
                'args'     => $debugBacktrace['args'][0],
            ];
        }

        return $checkBacktrace;
    }
private function getBacktraceUse()
    {
        $debugBacktrace = collect(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 30))->filter(function ($backtrace) {
            $backtraceClass = (isset($backtrace['class'])) ? $backtrace['class'] : null;

            return $backtraceClass === $this->listenClass;
        })->first();
        $checkBacktrace = null;
        $backtraceFile = (isset($debugBacktrace['file'])) ? $debugBacktrace['file'] : null;
        $backtraceFunction = (isset($debugBacktrace['function'])) ? $debugBacktrace['function'] : null;
        if (!is_null($debugBacktrace) && str_contains($backtraceFile, 'Illuminate/Database/Eloquent/SoftDeletingScope.php') && $backtraceFunction == 'update') {
            $checkBacktrace = [
                'object'   => $debugBacktrace['object'],
                'function' => $debugBacktrace['function'],
                'args'     => $debugBacktrace['args'][0],
            ];
        }

        return $checkBacktrace;
    }
private function getBacktraceUse ( ) { $ debugBacktrace = collect ( debug_backtrace ( DEBUG_BACKTRACE_PROVIDE_OBJECT , 30 ) ) -> filter ( function ( $ backtrace ) { $ backtraceClass = ( isset ( $ backtrace [ 'class' ] ) ) ? $ backtrace [ 'class' ] : null ; return $ backtraceClass === $ this -> listenClass ; } ) -> first ( ) ; $ checkBacktrace = null ; $ backtraceFile = ( isset ( $ debugBacktrace [ 'file' ] ) ) ? $ debugBacktrace [ 'file' ] : null ; $ backtraceFunction = ( isset ( $ debugBacktrace [ 'function' ] ) ) ? $ debugBacktrace [ 'function' ] : null ; if ( ! is_null ( $ debugBacktrace ) && str_contains ( $ backtraceFile , 'Illuminate/Database/Eloquent/SoftDeletingScope.php' ) && $ backtraceFunction == 'update' ) { $ checkBacktrace = [ 'object' => $ debugBacktrace [ 'object' ] , 'function' => $ debugBacktrace [ 'function' ] , 'args' => $ debugBacktrace [ 'args' ] [ 0 ] , ] ; } return $ checkBacktrace ; }
Return the backtrace will be use to get model object and function.

@return type
Return the backtrace will be use to get model object and function .