src/Utils/RequestUtil.php
public static function getSelectFields()
    {
        if ($select = request()->input('fields')) {
            $httpRequestSelectFields = explode(',', $select);

            if (strpos($select, '*') !== false) {
                $httpRequestSelectFields = ['*'];
            }
        }

        return $httpRequestSelectFields ?? [];
    }
public static function getSelectFields()
    {
        if ($select = request()->input('fields')) {
            $httpRequestSelectFields = explode(',', $select);

            if (strpos($select, '*') !== false) {
                $httpRequestSelectFields = ['*'];
            }
        }

        return $httpRequestSelectFields ?? [];
    }
public static function getSelectFields ( ) { if ( $ select = request ( ) -> input ( 'fields' ) ) { $ httpRequestSelectFields = explode ( ',' , $ select ) ; if ( strpos ( $ select , '*' ) !== false ) { $ httpRequestSelectFields = [ '*' ] ; } } return $ httpRequestSelectFields ?? [ ] ; }
Parses request select fields into an array

@return array
Parses request select fields into an array