public static function mySQLconnection( $array )
    {
        if ( env( 'APP_ENV' ) === 'local' && in_array( env( 'DB_HOST' ), [ 'localhost', '127.0.0.1' ] ) ) {
            $path = '/Applications/MAMP/tmp/mysql/mysql.sock';
            $mampSocket = ( file_exists( $path ) ) ? $path : '';
            $array['unix_socket'] = env( 'DB_SOCKET', $mampSocket );
        }
        return $array;
    }