src/Repositories/Traits/HCQueryBuilderTrait.php
protected function checkForTrashed(Builder $query, Request $request): Builder
    {
        if ($request->filled('trashed') && $request->input('trashed') === '1') {
            $query->onlyTrashed();
        }

        return $query;
    }
protected function checkForTrashed(Builder $query, Request $request): Builder
    {
        if ($request->filled('trashed') && $request->input('trashed') === '1') {
            $query->onlyTrashed();
        }

        return $query;
    }
protected function checkForTrashed ( Builder $ query , Request $ request ) : Builder { if ( $ request -> filled ( 'trashed' ) && $ request -> input ( 'trashed' ) === '1' ) { $ query -> onlyTrashed ( ) ; } return $ query ; }
Check for trashed records option

@param Builder $query
@param Request $request
@return mixed
Check for trashed records option